Specbridge
Created 4 months ago
An MCP server that turns OpenAPI specifications into MCP tools.
development
documentation
public
What is Specbridge?
Easily turn your OpenAPI specs into MCP Tools.
Documentation
SpecBridge
Features
- Zero Configuration: Filesystem is the interface - just drop OpenAPI specs in a folder
- Auto Authentication: Simple
.envfile with{API_NAME}_API_KEYpattern - Namespace Isolation: Multiple APIs coexist cleanly
- 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
- Install (optional)
npm install -g specbridge - Create a specs folder
mkdir ~/mcp-apis - Add OpenAPI specs
Drop any
.json,.yaml, or.ymlOpenAPI specification files into your specs folder. - Configure authentication (optional)
Create a
.envfile in your specs folder. - Add to MCP client configuration For Claude Desktop or Cursor, add to your MCP configuration.
CLI Usage# Start the server
specbridge
```\n\n### List loaded specs and tools
```bash
specbridge list
Authentication Patterns
The server automatically detects authentication from environment variables using specific patterns.
Tool Naming
Tools are automatically named using specific patterns based on operationId or method and path segments.
File Structure
your-project/
├── api-specs/
│ ├── .env
│ ├── petstore.json
│ ├── github.yaml
│ └── custom-api.yml
└── mcp-config.json
Example OpenAPI Spec
Here's a minimal example that creates two tools:
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
Troubleshooting
- Check that your OpenAPI specs are valid.
- Ensure files have correct extensions.
- Check the server logs for parsing errors.
Development
git clone https://github.com/TBosak/specbridge.git
cd specbridge
npm install\n\n# Build
npm run build\n\n# Test locally
npm run dev -- --specs ./examples
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
Server Config
{
"mcpServers": {
"specbridge-server": {
"command": "npx",
"args": [
"specbridge"
]
}
}
}
Links & Status
Project Info
Hosted
Featured
Created At:
Jul 17, 2025
Updated At:
Aug 07, 2025
Author:
TBosak
Category:
community
License:
MIT
Tags:
development
documentation
public