What is MCP (Model Context Protocol)? How it works with LLM APIs
The short version
- MCP (Model Context Protocol) is an open standard for connecting an LLM application to outside tools and data.
- A tool is published once as an MCP server. Any app that speaks MCP (an MCP client) can then use it the same way.
- MCP covers the connection to tools. The answers still come from a model, which you call through an LLM API. The two work together.
What MCP is
Before MCP, every app that wanted its model to search the web, query a database or call an internal API wrote its own integration. Move to a different agent or framework, and you wrote it again.
MCP puts that connection into one specification. Wrap a tool as an MCP server, and every MCP client can discover it and call it with no custom glue. A useful comparison is USB: one port shape, many devices.
Why it exists
Rebuilding the same tool integration for each model and each app is wasted work. The goal of MCP is to write the integration once and reuse it everywhere. For a tool author, one server reaches every compatible agent. For an app developer, adding a capability becomes a config line in place of a new code path.
How it works
MCP has two sides:
- The MCP server publishes tools (functions), resources (data) and prompts.
- The MCP client is the app that runs the model. It connects to servers and calls their tools.
When the model decides it needs a tool, the client sends the call to the MCP server and passes the result back to the model. Inside the model request, those tools arrive the same way any other tool does, through tool calling (see function calling explained).
Where the LLM API fits
This part is easy to mix up. MCP standardizes how tools and data are wired in. The text itself is generated by a model, and that model is reached through an LLM API. So an MCP setup always has two halves: the servers that provide tools, and the model endpoint that does the reasoning.
That second half is a choice you can change. If the app's model calls go to an OpenAI-compatible gateway, swapping the model is a one-field edit, and the MCP servers stay as they are. FastMetal is one such gateway: Claude, GPT and open-weight models behind one key.
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Authorization: Bearer $FASTMETAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "anthropic-claude-opus-5", "messages": [{"role": "user", "content": "Hello"}]}'
FastMetal as an MCP server
FastMetal also runs its own remote MCP server at https://mcp.fastmetal.ai/mcp. It gives an agent tools to ask another model, compare several models at once, and generate images or video. In Claude Code it takes one command:
claude mcp add --transport http fastmetal https://mcp.fastmetal.ai/mcp \
--header "Authorization: Bearer ${FASTMETAL_API_KEY}"
The launch post walks through the tools, and the MCP guide lists all of them with the setup for each client.
Summary
MCP is the standard way to connect an LLM app to tools and data. The model behind the app is a separate piece, reached through an LLM API, so you can change it without touching your MCP servers. The model catalog lists what you can point that API at, and the docs cover the first request.