MCP server giving AI agents instant access to 1,500+ free public APIs — search, probe, and generate code snippets
<div align="center">
# mcp-public-apis
**Give your AI coding agent the ability to find, test, and integrate any of 1,500+ free public APIs — instantly.**
[](LICENSE)
[](https://modelcontextprotocol.io)
[](https://claude.ai)
[](https://cursor.sh)
[](https://codeium.com/windsurf)
[](https://github.com/cline/cline)
Data sourced from the community-maintained [public-apis](https://github.com/public-apis/public-apis) list · synced daily
</div>
---
## What is this?
An [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that gives AI coding agents real-time access to the public-apis dataset. Instead of copy-pasting API documentation, your agent can search, probe, and generate working code — all in one conversation.
```
You: "Find me a free weather API with no auth that supports HTTPS"
Agent: [calls search_apis] → returns top matches with auth/HTTPS/CORS details
You: "Test the first one — show me what the response looks like"
Agent: [calls probe_api] → live GET request, returns status + response shape
You: "Generate an axios snippet for it"
Agent: [calls generate_snippet] → ready-to-paste curl, fetch, and axios code
```
---
## Installation
Pick the config for your client and paste it in. No build step required — `npx` handles everything.
<details>
<summary><strong>Claude Desktop</strong></summary>
File: `~/Library/Application Support/Cursor/claude_desktop_config.json` (macOS)
File: `%APPDATA%\Cursor\claude_desktop_config.json` (Windows)
```json
{
"mcpServers": {
"public-apis": {
"command": "npx",
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.