Integrating with external APIs is fundamental to modern development. MCP servers can give Claude the ability to call any REST API, whether through OpenAPI specs or direct HTTP requests. Here are the best options for API integration.
Recommended MCP Servers
OpenAPI MCP Server
janwilmake/openapi-mcp-server
A powerful server that allows AI to navigate complex OpenAPI specifications using simplified language.
Key Features
- OpenAPI v3 support
- Auto-generate tools from spec
- Any REST API
- Type-safe requests
Installation
npx openapi-mcp-serverOpenAPI MCP Server automatically generates tools from your API's OpenAPI specification. Just provide the spec URL and Claude can call any endpoint. Perfect for well-documented APIs.
Fetch MCP (Anthropic)
anthropics/mcp-server-fetch
Official Anthropic server for making HTTP requests to any URL.
Key Features
- Any HTTP request
- GET, POST, PUT, DELETE
- Custom headers
- JSON and form data
Installation
npx @modelcontextprotocol/server-fetchThe official Fetch MCP handles any HTTP request. When you don't have an OpenAPI spec or need custom requests, Fetch provides the flexibility to call any endpoint with any method.
OpenAPI-MCP Docker
ckanthony/openapi-mcp
Dockerized MCP Server to allow your AI agent to access any API with existing API docs.
Key Features
- Dockerized deployment
- Any API with OpenAPI docs
- Containerized security
- Easy setup
Installation
See GitHub for Docker setupA dockerized MCP Server that allows AI agents to access any API by providing the existing API documentation. Great for containerized environments and secure deployments.
Quick Comparison
| MCP | Stars | Best For | Pros | Cons |
|---|---|---|---|---|
| OpenAPI MCP | >500 | Documented APIs | Auto-generates tools | Needs spec |
| Fetch MCP | >2k | Any API | Maximum flexibility | Manual requests |
| Composio | >1k | Quick integration | 2,500+ APIs | Third-party dependency |
Getting Started
To call REST APIs with Claude Code:
For APIs with OpenAPI specs:
npx openapi-mcp --spec https://api.example.com/openapi.jsonFor any API, use the Fetch MCP:
npx @modelcontextprotocol/server-fetchFor quick integrations, explore Composio's 2,500+ pre-built APIs.
Example prompt: "Call the GitHub API to get my repositories and list the ones with the most stars."