Handles environment variables through .env files for storing and managing API credentials securely
Enables interaction with GitHub's API, allowing for operations like retrieving user repositories through tools like 'github_getUser'
Provides access to OpenAI's API services through automatic tool generation from OpenAPI specifications
Integrates with Swagger/OpenAPI specifications to automatically convert API definitions into usable MCP tools
Supports parsing of YAML-formatted OpenAPI specifications for tool generation
An MCP server that turns OpenAPI specifications into MCP tools. Scan a folder for OpenAPI spec files and automatically generate corresponding tools. No configuration files, no separate servers - just drop specs in a folder and get tools.
Built with FastMCP for TypeScript.
✨ Features
- 🎯 Zero Configuration: Filesystem is the interface - just drop OpenAPI specs in a folder
- 🔐 Auto Authentication: Simple
.env
file with{API_NAME}_API_KEY
pattern - 🏷️ Namespace Isolation: Multiple APIs coexist cleanly (e.g.,
petstore_getPet
,github_getUser
) - 📝 Full OpenAPI Support: Handles parameters, request bodies, authentication, and responses
- 🚀 Multiple Transports: Support for stdio and HTTP streaming
- 🔍 Built-in Debugging: List command to see loaded specs and tools
🚀 Quick Start
1️⃣ Install
2️⃣ Create a specs folder
3️⃣ Add OpenAPI specs
Drop any .json
, .yaml
, or .yml
OpenAPI specification files into your specs folder:
4️⃣ Configure authentication (optional)
Create a .env
file in your specs folder:
5️⃣ Add to MCP client configuration
For Claude Desktop or Cursor, add to your MCP configuration:
6️⃣ Restart your MCP client
That's it! Your OpenAPI specs are now available as MCP tools. ✅
💻 CLI Usage
🚀 Start the server
📋 List loaded specs and tools
🔑 Authentication Patterns
The server automatically detects authentication from environment variables using these patterns:
Pattern | Auth Type | Usage |
---|---|---|
{API_NAME}_API_KEY | 🗝️ API Key | X-API-Key header |
{API_NAME}_TOKEN | 🎫 Bearer Token | Authorization: Bearer {token} |
{API_NAME}_BEARER_TOKEN | 🎫 Bearer Token | Authorization: Bearer {token} |
{API_NAME}_USERNAME + {API_NAME}_PASSWORD | 👤 Basic Auth | Authorization: Basic {base64} |
The {API_NAME}
is derived from the filename of your OpenAPI spec:
petstore.json
→PETSTORE_API_KEY
github-api.yaml
→GITHUB_TOKEN
my_custom_api.yml
→MYCUSTOMAPI_API_KEY
🏷️ Tool Naming
Tools are automatically named using this pattern:
- With operationId:
{api_name}_{operationId}
- Without operationId:
{api_name}_{method}_{path_segments}
Examples:
petstore_getPetById
(from operationId)github_get_user_repos
(generated fromGET /user/repos
)
📁 File Structure
📄 Example OpenAPI Spec
Here's a minimal example that creates two tools:
This creates tools named:
example_getUser
example_createUser
🔧 Troubleshooting
❌ No tools appearing?
- Check that your OpenAPI specs are valid:
- Ensure files have correct extensions (
.json
,.yaml
,.yml
) - Check the server logs for parsing errors
⚠️ Note: Specbridge works best when you use absolute paths (with no spaces) for the
--specs
argument and other file paths. Relative paths or paths containing spaces may cause issues on some platforms or with some MCP clients.
🔐 Authentication not working?
- Verify your
.env
file is in the specs directory - Check the naming pattern matches your spec filename
- Use the list command to verify auth configuration:
🔄 Tools not updating after spec changes?
- Restart the MCP server to reload the specs
- Check file permissions
- Restart the MCP client if needed
🛠️ Development
🤝 Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An MCP server that automatically converts OpenAPI specifications into MCP tools by scanning a folder for spec files, requiring no configuration files or separate servers.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.Last updated -2PythonMIT License
- -securityAlicense-qualityGenerate an MCP server for any OpenAPI documented endpoint.Last updated -201GoApache 2.0
- -securityAlicense-qualityA command-line tool that transforms any OpenAPI service into a Model Context Protocol (MCP) server, enabling seamless integration with AI agents and tools that support the MCP specification.Last updated -902TypeScriptMIT License
- -securityFlicense-qualityAn auto-generated MCP server that enables interaction with the OpenAI API, allowing users to access OpenAI's models and capabilities through the Multi-Agent Conversation Protocol.Last updated -Python