The API2MCP Blog

Practical writing on the Model Context Protocol — how to wrap REST APIs as MCP servers, connect Claude and Cursor, handle auth and credentials, and give AI agents real access to the APIs you already run.

· 6 min read

What Actually Happens When You Wrap a REST API as MCP Tools

A look under the hood at API-to-MCP wrapping — how an OpenAPI operation becomes a tool the model can call, and what happens on the round trip when it does.

· 5 min read

AI Spec Discovery: Wrap an API That Has No OpenAPI Spec

Plenty of useful APIs never published an OpenAPI spec. AI Spec Discovery reconstructs one from their docs so you can still wrap them as MCP tools — here's how it works and where to be careful.

· 5 min read

Keep Your API Keys Away From the Model: Server-Side Credential Injection

Handing an AI agent your API key is a leak waiting to happen. Here's why models and secrets don't mix, and how server-side credential injection removes the risk entirely.

· 6 min read

How AI Agents Authenticate to Your API: Bearer, API Key, and OAuth 2.1

MCP auth has two layers that people constantly conflate. Here's how each one works — client to server, and server to your API — with the three upstream auth types explained.

· 6 min read

Managed MCP Server Hosting vs. Building Your Own

Writing an MCP server is a weekend. Running one in production is a job. Here's an honest breakdown of what DIY actually costs and when managed hosting is the right call.

· 5 min read

Connect Cursor to Any REST API via MCP

How to give Cursor's agent access to your REST API through an MCP server — the mcp.json config, project vs global scope, and how to actually get the agent to use your tools.

· 5 min read

Connect Claude Desktop to Your REST API with MCP

A practical guide to giving Claude Desktop access to your REST API through an MCP server — the config file, the two connection methods, and the mistakes that waste an afternoon.

· 6 min read

How to Turn an OpenAPI Spec into an MCP Server (No Code)

A start-to-finish walkthrough that turns a real OpenAPI spec into a working MCP server your AI agent can call — using the Swagger Petstore, no server code written.

· 8 min read

What Is the Model Context Protocol (MCP)? A Plain-English Guide

MCP is the open standard that lets AI agents call your APIs. Here's what it actually is, how a client and server talk, and where it fits — without the jargon.