How Model Context Protocol (MCP) Is Changing API Discovery
How Model Context Protocol (MCP) Is Changing API Discovery
Anthropic's Model Context Protocol (MCP) is quietly reshaping how developers interact with APIs. Instead of reading documentation, writing HTTP requests, and parsing JSON responses, developers describe what they want and an AI agent calls the right API with the right parameters. This changes everything about API discovery, integration, and consumption.
What Is MCP?
MCP is an open protocol that standardizes how AI models connect to external tools and data sources. Think of it as a universal adapter between AI assistants and the APIs they use.
Traditional: Developer → reads docs → writes code → calls API → parses response
MCP: Developer → describes intent → AI agent → MCP server → API → result
How It Works
- MCP Server — Wraps an API's functionality as "tools" with typed parameters
- MCP Client — An AI assistant (Claude, etc.) that discovers and calls these tools
- Protocol — JSON-RPC over stdio or HTTP, with tool discovery, execution, and result handling
// Example: MCP server wrapping a weather API
const server = new Server({
name: 'weather-api',
version: '1.0.0',
});
server.setRequestHandler(ListToolsRequestSchema, async () => ({
tools: [{
name: 'get_weather',
description: 'Get current weather for a location',
inputSchema: {
type: 'object',
properties: {
city: { type: 'string', description: 'City name' },
units: { type: 'string', enum: ['metric', 'imperial'] },
},
required: ['city'],
},
}],
}));
server.setRequestHandler(CallToolRequestSchema, async (request) => {
if (request.params.name === 'get_weather') {
const { city, units } = request.params.arguments;
const data = await fetchWeather(city, units);
return { content: [{ type: 'text', text: JSON.stringify(data) }] };
}
});
How MCP Changes API Discovery
Before MCP: The Developer Journey
- Search — Google "best weather API" → read 5 blog posts → compare 3 options
- Evaluate — Read docs, check pricing, look at SDK quality
- Sign up — Create account, generate API key, verify email
- Integrate — Install SDK, write wrapper code, handle errors
- Test — Write test cases, handle edge cases
- Maintain — Monitor for breaking changes, update SDK versions
Time to first API call: hours to days.
After MCP: The AI-Assisted Journey
- Describe — "I need weather data for my app"
- Discover — AI agent searches MCP registry, finds weather tools
- Try — Agent calls the tool, shows you results immediately
- Integrate — Generate the MCP config, connect to your app
Time to first API call: minutes.
The Discovery Layer
MCP introduces a new discovery mechanism. Instead of Googling for APIs, developers (and AI agents) can:
- Browse MCP registries — Curated lists of MCP servers by category
- Search by capability — "Find me a tool that geocodes addresses"
- Try before integrating — AI agent calls the tool to verify it works
- Compare alternatives — Agent tests multiple tools and compares results
This is fundamentally different from REST API discovery:
| Aspect | Traditional API Discovery | MCP Discovery |
|---|---|---|
| Search | Google, API directories | MCP registries, AI search |
| Evaluation | Read docs manually | AI tries the tool |
| Time to test | Hours (signup + code) | Seconds (AI calls it) |
| Integration effort | Write HTTP client code | Point to MCP server |
| Interface | HTTP endpoints + JSON | Typed tool definitions |
Impact on API Providers
What Changes for API Companies
1. Documentation becomes tool descriptions
Instead of writing 50-page API docs, you write concise tool descriptions that AI models can understand:
// This replaces pages of REST API documentation
{
name: 'search_products',
description: 'Search for products by name, category, or attributes. Returns matching products with prices and availability. Use filters to narrow results.',
inputSchema: {
type: 'object',
properties: {
query: {
type: 'string',
description: 'Search query — product name, brand, or keyword',
},
category: {
type: 'string',
description: 'Product category to filter by',
enum: ['electronics', 'clothing', 'home', 'sports'],
},
maxPrice: {
type: 'number',
description: 'Maximum price in USD',
},
},
required: ['query'],
},
}
2. Developer experience shifts to AI experience
The API's "user" is now an AI model. Quality metrics change:
| Old Metric | New Metric |
|---|---|
| Time to first API call | Time to first tool call |
| SDK download count | MCP server installs |
| Documentation page views | Tool success rate |
| API response time | End-to-end task completion |
3. Distribution through AI assistants
APIs can be discovered and used through Claude, GPT, and other assistants. This creates a new distribution channel:
- User asks Claude for help → Claude finds relevant MCP tool → User adopts the API
- No Google search, no comparison shopping, no signup friction
What API Providers Should Do Now
- Build an MCP server for your API — make it discoverable by AI assistants
- Write tool descriptions that AI models understand (not just humans)
- Optimize for AI callers — clear error messages, typed schemas, predictable responses
- Register in MCP directories — get listed where AI agents look for tools
- Monitor AI-driven usage — track how often AI agents call your tools vs. human developers
Impact on Developers
The Good
- Faster prototyping — try APIs in seconds, not hours
- Lower integration burden — MCP handles connection, auth, serialization
- Better discovery — AI suggests APIs you didn't know existed
- Cross-API orchestration — AI can chain multiple APIs in one workflow
The Concerns
- Abstraction hides complexity — you might not understand what's happening under the hood
- AI selects your dependencies — the model picks which API to use, not you
- Lock-in to AI platforms — your API consumption depends on MCP client availability
- Cost transparency — harder to track costs when AI makes multiple API calls per request
The llms.txt Connection
Alongside MCP, the llms.txt convention helps AI models understand websites and APIs:
# llms.txt — placed at yourapi.com/llms.txt
> YourAPI provides geocoding, routing, and map data for developers.
## Endpoints
- GET /geocode — Convert address to coordinates
- GET /reverse — Convert coordinates to address
- GET /route — Get directions between two points
## Authentication
- API key via `Authorization: Bearer <key>` header
- Free tier: 1,000 requests/day
## Quick Start
- Sign up at yourapi.com/signup
- Get your API key from the dashboard
- See examples at yourapi.com/docs/examples
This gives AI models a quick overview without parsing full documentation. Combined with MCP, it creates a layered discovery system:
llms.txt→ AI understands what the API does- MCP server → AI can actually call the API
- Full docs → AI can help developers with complex integrations
What's Next
Short Term (2026)
- MCP registry consolidation — a few registries will become the "npm" of MCP servers
- Auth standardization — MCP OAuth flows for API key management
- More providers — expect every major API to ship an MCP server
Medium Term (2027)
- AI-native API design — APIs designed for AI consumption first, human second
- Autonomous integration — AI agents that discover, test, and integrate APIs without human intervention
- Quality signals — reliability, speed, and accuracy scores for MCP tools
Long Term (2028+)
- APIs as commodities — when AI handles integration, the switching cost drops to near zero
- Intent-based computing — describe what you want, AI finds and chains the right APIs
- New pricing models — AI-mediated API calls may need different billing (per-outcome vs. per-call)
Building for the MCP Future
If you're an API provider:
| Action | Priority |
|---|---|
| Ship an MCP server | High — early mover advantage |
Add llms.txt | High — easy, immediate benefit |
| Optimize tool descriptions | High — AI DX matters |
| Register in directories | Medium — distribution |
| Track AI-driven usage | Medium — understand the shift |
| Design for AI callers | Low (for now) — watch the trend |
If you're a developer:
| Action | Priority |
|---|---|
| Try MCP-enabled assistants | High — see the workflow |
| Learn MCP server authoring | Medium — build tools for your APIs |
| Consider AI-first architecture | Low (for now) — the pattern is emerging |
Discover APIs the new way on APIScout — browse, compare, and find the right API for your project, whether you're coding by hand or letting AI handle the integration.