APIWeaver

APIWeaver

A FastMCP server that dynamically creates MCP servers from web API configurations.

42
Stars
12
Forks
0
Releases

Overview

APIWeaver is a FastMCP server that dynamically creates MCP servers from web API configurations. It enables you to seamlessly integrate REST APIs, GraphQL endpoints, or other web services into an MCP-compatible tool that can be consumed by AI assistants such as Claude. The server supports dynamic API registration at runtime, multiple authentication methods (Bearer tokens, API keys, Basic auth, OAuth2, and custom headers), and full HTTP method coverage (GET, POST, PUT, DELETE, PATCH, and more). It offers flexible parameter handling, including query params, path params, headers, and request bodies, and automatically generates an MCP tool for every API endpoint. Built-in testing lets you verify API connections before use, and response handling includes automatic JSON parsing with a fallback to plain text. APIWeaver supports multiple transport options to fit different deployment scenarios: STDIO (default for local tooling), Server-Sent Events (SSE, legacy), and the streamable HTTP transport (recommended for modern deployments). Core tools include register_api, list_apis, unregister_api, test_api_connection, call_api, and get_api_schema.

Details

Owner
GongRzhe
Language
Python
License
MIT License
Updated
2025-12-07

Features

Dynamic API Registration

Register any web API at runtime.

Multiple Authentication Methods

Bearer tokens, API keys, Basic auth, OAuth2, and custom headers.

All HTTP Methods

Support for GET, POST, PUT, DELETE, PATCH, and more.

Flexible Parameters

Query params, path params, headers, and request bodies.

Automatic Tool Generation

Each API endpoint becomes an MCP tool.

Built-in Testing

Test API connections before using them.

Response Handling

Automatic JSON parsing with fallback to text.

Multiple Transport Types

STDIO, SSE, and Streamable HTTP transport support.

Audience

AI developersExpose REST/GraphQL APIs as MCP tools for AI assistants like Claude.
MCP integrators/tool developersRegister APIs and generate MCP endpoints to be used by MCP clients.

Tags

dynamic-api-registrationauthenticationRESTGraphQLMCPtool-generationtestingresponse-handlingtransport