What is An MCP server that turns OpenAPI specifications into MCP tools.?
SpecBridge is an MCP server that allows users to scan a folder for OpenAPI spec files and automatically generate corresponding tools without the need for configuration files or separate servers. It supports multiple transports, auto authentication, and namespace isolation for multiple APIs.
## 📄 Example OpenAPI Spec
Here's a minimal example that creates two tools:
```yaml\n\n# ~/mcp-apis/example.yaml
openapi: 3.0.0
info:
title: Example API
version: 1.0.0
servers:
- url: https://api.example.com
paths:
/users/{id}:
get:
operationId: getUser
summary: Get user by ID
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: User found
/users:
post:
operationId: createUser
summary: Create a new user
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
email:
type: string
responses:
'201':
description: User created
This creates tools named:
example_getUser
example_createUser
🔧 Troubleshooting# ❌ No tools appearing?
Check that your OpenAPI specs are valid:
specbridge list --specs /path/to/specs
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:
specbridge list
🔄 Tools not updating after spec changes?
Restart the MCP server to reload the specs
Check file permissions
Restart the MCP client if needed
🛠️ Development
git clone https://github.com/TBosak/specbridge.git
cd specbridge
npm install
# Build
npm run build
# Test locally
npm run dev -- --specs ./examples
🤝 Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.