
FastMCP Dynamic Tools
by mlim1972
PoC for creating MCP tools dynamically from REST APIs and programmatic registration.
What it does
This server demonstrates the flexibility of the FastMCP framework by exposing REST API endpoints as MCP tools dynamically. It allows developers to wrap existing APIs into a standardized protocol for AI assistants without using static decorators.
Tools
list_items: Lists inventory items from the integrated FastAPI backend.get_item: Retrieves specific item details by ID.create_item: Adds a new item to the inventory.update_item: Modifies an existing inventory item.delete_item: Removes an item from the system.calculate: Performs basic arithmetic operations.health_check: Validates server status.echo: A dynamically registered tool that echoes messages.server_info: Provides details about the current server instance.api_reference: Returns the REST API documentation.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"dynamic-tools": {
"command": "uv",
"args": ["--directory", "/path/to/fastmcp-test", "run", "python", "-m", "dynamic_mcp.main", "--mode", "stdio"]
}
}
}
Supported hosts
- claude
Quick install
uv run python -m dynamic_mcp.main --mode stdioInformation
- Pricing
- free
- Published
- 5/1/2026






