APIWeaver
by GongRzhe
Dynamically create MCP servers from any REST API or GraphQL endpoint
api Python Intermediate Self-hostable No API key
β 48 stars π
Updated: 9mo ago
Description
A FastMCP server that dynamically creates MCP tools from web API configurations at runtime. Register any REST API, GraphQL endpoint, or web service and it becomes available as an MCP tool for AI assistants. Supports multiple authentication methods (Bearer, API keys, Basic, OAuth2, custom headers), all HTTP verbs, and three transport modes (stdio, SSE, Streamable HTTP). Enables runtime API registration without server restarts.
β Best for
Teams needing to quickly expose multiple APIs as MCP tools without writing custom servers
βοΈ Skip if
You have a single API that warrants a dedicated MCP server implementation
π‘ Use cases
- Exposing internal REST APIs as MCP tools for AI assistants without custom code
- Dynamically adding new API integrations at runtime
- Testing API connectivity before deploying MCP tool configurations
- Building a library of API-backed tools accessible through AI
π Pros
- β Dynamic runtime registration β no server restart needed
- β Supports REST, GraphQL, and any HTTP-based API
- β Multiple auth methods (Bearer, API key, Basic, OAuth2)
- β Three transport modes including Streamable HTTP
π Cons
- β Added abstraction layer may complicate debugging API issues
- β Generic tool interface less intuitive than purpose-built MCP servers
- β No built-in rate limiting or caching for registered APIs
π§ Exposed tools (6 tools)
| Tool | Category | Description |
|---|---|---|
| call_api | api-invocation | Generic endpoint invocation for registered APIs |
| register_api | api-management | Define and create MCP tools from web API configurations at runtime |
| list_apis | api-management | Display all registered APIs and their endpoints |
| unregister_api | api-management | Remove APIs and their associated tools |
| test_api_connection | api-management | Verify API connectivity before use |
| get_api_schema | api-management | Retrieve API and endpoint schema information |
π‘ Tips & tricks
Use test_api_connection to verify APIs before registering them. The streamable-http transport is recommended for production deployments.
Quick info
- Author
- GongRzhe
- License
- MIT
- Runtime
- Python 3.10+
- Transport
- stdio
- Category
- api
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- 1.0.0
- Updated
- Jun 18, 2025
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows