internal-tools
Maps internal API endpoints to agent tools using OpenAPI specs, allowing agents to interact with internal services through natural language without per-agent tool wrappers.
README
internal-tools MCP server (MVP)
One hosted MCP server that maps internal API endpoints to agent tools, generated
from OpenAPI specs via FastMCP from_openapi(). No
per-agent tool wrappers, no duplicated work across repos.
For the MVP it fronts a mock "build-metrics" FastAPI service in this repo; swap
API_BASE_URL to point at a real internal service.
Run
uv sync
# terminal 1 — mock backend (port 8000)
uv run uvicorn mock_api.main:app --port 8000
# terminal 2 — MCP server (port 8001)
uv run python mcp_server/server.py
The MCP endpoint is http://localhost:8001/mcp (streamable HTTP).
Connect an agent
Claude Code (this repo already has .mcp.json):
{
"mcpServers": {
"internal-tools": { "type": "http", "url": "http://localhost:8001/mcp" }
}
}
For a team deployment, host mcp_server/server.py on an internal box and point
the URL there — every agent gets the same toolset from one place.
Point at a real service
API_BASE_URL=https://your-service.internal uv run python mcp_server/server.py
Requirements on the backend:
- serves its OpenAPI spec at
/openapi.json(FastAPI does this out of the box; for non-FastAPI services, hand-write a minimal spec and load it from a file) - good
operation_ids and endpoint docstrings — they become tool names and descriptions, which is what the agent reasons over
Auth: add headers to the httpx client in mcp_server/server.py, e.g.
httpx.AsyncClient(base_url=..., headers={"Authorization": f"Bearer {token}"}).
Curating the toolset
route_maps in mcp_server/server.py controls what gets exposed. The MVP
excludes /admin/* and anything tagged internal; everything else becomes a
tool. Add RouteMap entries (regex, HTTP method, or tag based) to include or
exclude endpoints as the toolset grows.
Adding more backends later
The goal is one server, many services: fetch each service's spec, build a
FastMCP.from_openapi() server for it, and mcp.mount(other, prefix="svc")
them onto the main server so tools stay namespaced.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.