> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# createOpenAPIServer

```ts theme={null}
function createOpenAPIServer(options): FastMCP;
```

Defined in: [server/openapi/index.ts:144](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L144)

Create a FastMCP server from an OpenAPI 3.0/3.1 specification. Every
operation becomes an MCP component (tool by default; see `routeMaps`)
whose handler calls the described HTTP endpoint.

## Parameters

### options

[`OpenAPIServerOptions`](/api/server/interfaces/OpenAPIServerOptions)

## Returns

[`FastMCP`](/api/server/classes/FastMCP)
