Public APIs MCP
Provides access to a catalog of free public APIs sourced from the public-apis GitHub repository, enabling semantic search and detailed retrieval of API information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Public APIs MCP find APIs for currency exchange rates"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Public APIs MCP
Catalog of free public APIs with semantic search.
The catalog includes an extensive list of APIs from the public-apis GitHub repo.
Thank you to all the maintainers, contributors and API creators! 💯
Related MCP server: APIClaw
🎯 Features
search_public_apis: embedding-based search over API names and descriptionsget_public_api_details: retrieve full details byidResources:
public-apis://apis,public-apis://api/{id}
🔧 Setup (uv)
Add to MCP clients (e.g., Claude Desktop) using uv.
Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"public-apis": {
"command": "uvx",
"args": ["public-apis-mcp"]
}
}
}🚀 Usage
Build embeddings index (optional; auto-build on first search):
uvx public-apis-mcp build-indexRun the MCP server over STDIO:
uvx public-apis-mcp run📋 Tool Reference
search_public_apis
Purpose: Semantic search over the catalog
Parameters:
query(str),limit(int, default 5)Returns: list of
{ id, name, score, snippet }
Example call payload:
{ "name": "search_public_apis", "arguments": { "query": "weather", "limit": 5 } }get_public_api_details
Purpose: Fetch full details by
idParameters:
id(str)Returns:
ApiItem
Example call payload:
{ "name": "get_public_api_details", "arguments": { "id": "a6b3a6b3-a6b3-a6b3-a6b3-a6b3a6b3a6b3" } }🛠️ Development
Prerequisites:
Python 3.10+
uv (
https://docs.astral.sh/uv/)
Setup:
uv sync --devRun tests:
FREE_APIS_MCP_TEST_MODE=1 uv run pytest -qLint and format:
uv run ruff check --fix
uv run ruff formatType checking:
uv run mypy src/MCP Client Dev Config
{
"mcpServers": {
"public-apis-dev": {
"command": "uv",
"args": [
"--directory",
"<abs_path>/public-apis-mcp",
"run",
"public-apis-mcp"
]
}
}
}Build and Try
uv build
uv run --with dist/*.whl public-apis-mcp --help📦 Data & Index
Data:
src/public_apis_mcp/datastore/free_apis.jsonEmbedding index:
src/public_apis_mcp/datastore/index.npz(auto-built)
Testing with MCP Inspector
For exploring and/or developing this server, use the MCP Inspector npm utility:
# Install MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Run local development server with the inspector
npx @modelcontextprotocol/inspector uv run public-apis-mcp
# Run PyPI production server with the inspector
npx @modelcontextprotocol/inspector uvx public-apis-mcp📝 License
MIT License - see LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Available Tools
2 toolsget_public_api_detailsA
Get detailed information about a specific API by its unique public-apis-mcp server ID
Inputs: id (required). Returns: id, api, api_link, description, +4 more
search_public_apisC
Search for free public APIs that match the input query string.
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one searches for APIs using a query string, and the other retrieves detailed information by a specific ID. There is no overlap or ambiguity.
Both tool names follow the consistent verb_noun pattern ('search_public_apis', 'get_public_api_details'), making them predictable and easy to understand.
With only 2 tools, the server is slightly under-scoped for a general 'Public APIs' domain. However, the two tools cover the essential operations of search and detail retrieval, which may be sufficient for the intended use case.
The tool set covers the core functionalities of searching and getting details for public APIs. While missing operations like listing all APIs or browsing categories, the search tool effectively mitigates those gaps, making the surface reasonably complete.
Maintenance
Related MCP Connectors
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Find and call verified APIs from any AI assistant, with free trial calls and previewed writes.
Discover, compare, and monitor 1,400+ APIs directly from your AI coding agent.
AI-powered SaaS tool discovery API. Search 150+ curated business tools and get recommendations.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to discover, search, and interact with REST APIs by parsing OpenAPI/Swagger specifications with intelligent fuzzy search across endpoints, supporting both local and remote API sources.6 npm2MIT
- AlicenseAqualityBmaintenanceThe API layer for AI agents. World's biggest API index with 22,000+ APIs and growing. Agents discover and call APIs at runtime with semantic search, structured metadata, and 18 Direct Call APIs including AI providers.14729 npm8MIT
- FlicenseNot gradedqualityCmaintenanceEnables semantic search over an OpenAPI catalog to find and recommend API endpoints based on natural language queries.-
- FlicenseNot gradedqualityFmaintenanceEnables searching and retrieving structured data from the RapidAPI marketplace, including API details like pricing, popularity, and ratings, without requiring a RapidAPI account.-