Public APIs▌

by zazencodes
Discover free APIs with semantic search across a curated catalog. Find APIs by use case, retrieve metadata, and explore
Provides semantic search across a curated catalog of free public APIs using embedding-based natural language queries to help developers discover APIs by use case, retrieve detailed metadata including authentication and CORS requirements, and match requirements to available capabilities.
best for
- / Developers looking for APIs to integrate
- / Finding alternatives to paid API services
- / API discovery for prototyping projects
capabilities
- / Search public APIs using semantic queries
- / Get detailed API metadata by ID
- / Browse authentication requirements
- / Check CORS support status
- / Discover APIs by use case
what it does
Searches a catalog of free public APIs using natural language queries and provides detailed metadata including authentication and CORS requirements.
about
Public APIs is a community-built MCP server published by zazencodes that provides AI assistants with tools and capabilities via the Model Context Protocol. Discover free APIs with semantic search across a curated catalog. Find APIs by use case, retrieve metadata, and explore It is categorized under search web. This server exposes 2 tools that AI clients can invoke during conversations and coding sessions.
how to install
You can install Public APIs in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Public APIs is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
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! 💯
🎯 Features
search_public_apis: embedding-based search over API names and descriptionsget_public_api_details: retrieve full details byid- Resources:
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-index
- Run 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
id - Parameters:
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 --dev
Run tests:
FREE_APIS_MCP_TEST_MODE=1 uv run pytest -q
Lint and format:
uv run ruff check --fix
uv run ruff format
Type 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.json - Embedding 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.
FAQ
- What is the Public APIs MCP server?
- Public APIs is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Public APIs?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Public APIs is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Public APIs against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Public APIs is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Public APIs reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Public APIs for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Public APIs surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Public APIs has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Public APIs benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Public APIs into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Public APIs is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.