O

OpenAPI

Dynamically exposes REST APIs defined by OpenAPI specifications as MCP tools, enabling seamless inte...

167 views
1 installs
Updated Sep 9, 2025
Not audited
Dynamically exposes REST APIs defined by OpenAPI specifications as MCP tools, enabling seamless integration of external services into workflows.
  1. Obtain the Required OpenAPI Information

    • Acquire the OpenAPI specification URL for the API you want to connect (e.g., from the API provider's documentation).
    • If authentication is required, obtain the correct API key or token from the API provider. This typically involves:
      • Signing up for an account on the provider’s website.
      • Navigating to a section like "API Keys," "Access Tokens," or "Developer Portal."
      • Creating and copying your personal API key or token.
  2. (Optional) Gather Additional Environment Values if Needed

    • Review your API documentation to see if any of these optional variables are required for your use case:
      • API_AUTH_TYPE (e.g., change from Bearer to another type)
      • TOOL_WHITELIST (to limit exposed endpoints)
      • EXTRA_HEADERS (for APIs requiring custom headers)
      • Refer to the README’s Examples section for special cases or API-specific setup.
  3. Open the FastMCP Connection Interface

    • Navigate to your FastMCP workspace and locate the connection panel or interface.
  4. Click the “Install Now” Button

    • Press the "Install Now" button to begin adding your environment values.
  5. Fill in the Required Environment Values:

    • In the form that appears, fill in the following fields:
      • OPENAPI_SPEC_URL: Paste the OpenAPI spec URL you obtained.
      • API_KEY (only if required by the target API): Paste your API key or token.
    • If your API requires any of the optional fields (from step 2), fill them in as well.
  6. Save and Complete Setup

    • After entering all the required (and any optional) values, confirm and save your configuration in the FastMCP interface.
  7. Verify the Connection (Optional but Recommended)

    • Try listing tools or using a test endpoint to verify the connection is successful and the credentials are working.

Notes:

  • Each API may have a slightly different process for obtaining an API key or token. Refer to the API provider’s official documentation if you get stuck.
  • It is recommended to keep your API keys secure and not share them publicly.

You can now interact with the connected OpenAPI endpoints through FastMCP!

Quick Start

View on GitHub

More for API Development

View All →

More for Developer Tools

View All →

Similar MCP Servers

Report Issue

Thank you! Your issue report has been submitted successfully.