---
title: provider
sidebarTitle: provider
---
# `fastmcp.server.providers.openapi.provider`
OpenAPIProvider for creating MCP components from OpenAPI specifications.
## Classes
### `OpenAPIProvider`
Provider that creates MCP components from an OpenAPI specification.
Components are created eagerly during initialization by parsing the OpenAPI
spec. Each component makes HTTP calls to the described API endpoints.
**Methods:**
#### `lifespan`
```python
lifespan(self) -> AsyncIterator[None]
```
Manage the lifecycle of the auto-created httpx client.
#### `get_tasks`
```python
get_tasks(self) -> Sequence[FastMCPComponent]
```
Return empty list - OpenAPI components don't support tasks.