APIWeaver
A FastMCP server that dynamically creates MCP (Model Context Protocol) servers from web API configurations. This allows you to easily integrate any REST API, GraphQL endpoint, or web service into an MCP-compatible tool that can be used by AI assistan
What is APIWeaver?
APIWeaver is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to fastmcp server that dynamically creates mcp (model context protocol) servers from web api configurations. this allows you to easily integrate any rest api, graphql endpoint, or web service into an mcp...
A FastMCP server that dynamically creates MCP (Model Context Protocol) servers from web API configurations. This allows you to easily integrate any REST API, GraphQL endpoint, or web service into an MCP-compatible tool that can be used by AI assistan
This server falls under the APIs and Developer Tools categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A FastMCP server that dynamically creates MCP (Model Context
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx apiweaverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use APIWeaver
APIWeaver is a FastMCP-based Python server that dynamically creates MCP tools from web API configurations, allowing you to integrate any REST API, GraphQL endpoint, or web service into an MCP-compatible tool without writing custom server code. You describe your API once using a configuration format that specifies the base URL, authentication method, headers, and endpoint definitions, and APIWeaver instantly makes those endpoints callable by AI assistants. Developers use it to rapidly connect Claude or other AI clients to internal APIs, third-party services, or prototyping APIs without building a dedicated MCP server for each one.
Prerequisites
- Python 3.8 or higher with pip installed
- The APIWeaver repository cloned locally
- API credentials or tokens for any external services you want to integrate
- An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
Clone the APIWeaver repository
Clone the repository from GitHub and enter the project directory.
git clone https://github.com/GongRzhe/APIWeaver.git
cd APIWeaverInstall dependencies
Install the required Python packages. APIWeaver uses FastMCP and httpx for making API calls.
pip install -r requirements.txt
# or install as a package:
pip install .Configure your MCP client
Add the APIWeaver server to your MCP client configuration. It runs via Python and uses stdio transport.
Register your first API
Ask your AI assistant to call the register_api tool with the name, base_url, description, authentication details, and endpoint definitions for the API you want to integrate. APIWeaver will create callable tools for each endpoint.
Test connectivity and call endpoints
Use the test_api_connection tool to verify APIWeaver can reach your API, then use call_api or the auto-generated endpoint tools to make real requests.
List and manage registered APIs
Use list_apis to see all registered APIs and their endpoints. Use unregister_api to remove integrations that are no longer needed.
APIWeaver Examples
Client configuration
Example claude_desktop_config.json entry to launch the APIWeaver Python server. Adjust the path to match where you cloned the repository.
{
"mcpServers": {
"apiweaver": {
"command": "python",
"args": ["/absolute/path/to/APIWeaver/main.py"]
}
}
}Prompts to try
Example prompts that exercise the six built-in APIWeaver tools for registering and calling web APIs.
- "Register the JSONPlaceholder API with base URL https://jsonplaceholder.typicode.com and add a GET /posts endpoint"
- "List all APIs currently registered in APIWeaver"
- "Test the connection to the JSONPlaceholder API"
- "Call the GET /posts endpoint on JSONPlaceholder and return the first 5 results"
- "Get the API schema for the JSONPlaceholder integration"
- "Register our internal inventory API at http://internal.api/v2 with Bearer token auth and add GET /products and POST /orders endpoints"Troubleshooting APIWeaver
ModuleNotFoundError when starting the server
Run 'pip install -r requirements.txt' from the APIWeaver directory. If you have multiple Python versions, ensure you are installing into the same Python environment that your MCP client will use to launch the server.
register_api succeeds but API calls return authentication errors
Verify the auth configuration passed to register_api matches what your target API expects (Bearer token, API key header, Basic auth, etc.). Use get_api_schema to inspect the registered configuration and correct any mismatches.
call_api returns a connection timeout
Use test_api_connection to check basic reachability. If the API is internal, ensure the machine running the APIWeaver server can reach the internal network. For HTTPS APIs, confirm that SSL certificates are valid.
Frequently Asked Questions about APIWeaver
What is APIWeaver?
APIWeaver is a Model Context Protocol (MCP) server that fastmcp server that dynamically creates mcp (model context protocol) servers from web api configurations. this allows you to easily integrate any rest api, graphql endpoint, or web service into an mcp-compatible tool that can be used by ai assistan It connects AI assistants to external tools and data sources through a standardized interface.
How do I install APIWeaver?
Follow the installation instructions on the APIWeaver GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with APIWeaver?
APIWeaver works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is APIWeaver free to use?
Yes, APIWeaver is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
APIWeaver Alternatives โ Similar APIs Servers
Looking for alternatives to APIWeaver? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
โ 43.4k๐ฆ The API and AI Gateway
API Mega List
โ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHubโperiod. ๐ช
Fetch
โ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
โ 2.1kSelf-Hosted API Management for Builders
Korean Law
โ 1.8k๊ตญ๊ฐ๋ฒ๋ น์ ๋ณดMCP v4.0 | ๋ฒ์ ์ฒ 41๊ฐ API โ 17๊ฐ MCP ๋๊ตฌ. ๋ฒ๋ นยทํ๋กยท์กฐ๋ก ๊ฒ์ + LLM ํ๊ฐ ๋ฐฉ์ง ์ธ์ฉ๊ฒ์ฆ + ์กฐ๋ฌธ ์ํฅ ๊ทธ๋ํ(impact_map) + ์์ ๋น๊ต ์๋ diff(time_travel) + ์๋ฏผ 5๋จ๊ณ ์คํ ๊ฐ์ด๋(action_plan) | 41 Korean legal APIs โ 17 MCP tools
RuleGo
โ 1.5kโ๏ธRuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Browse More APIs MCP Servers
Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up APIWeaver in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use APIWeaver?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.