MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

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)

ToolCategoryDescription
call_apiapi-invocationGeneric endpoint invocation for registered APIs
register_apiapi-managementDefine and create MCP tools from web API configurations at runtime
list_apisapi-managementDisplay all registered APIs and their endpoints
unregister_apiapi-managementRemove APIs and their associated tools
test_api_connectionapi-managementVerify API connectivity before use
get_api_schemaapi-managementRetrieve 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