What an MCP is and how AI agents use it
On this page
An MCP, short for Model Context Protocol, is an open standard that lets an AI model call outside tools and read outside data through one shared interface. A host application, such as an AI assistant or agent framework, connects to an MCP server, and the server exposes the tools, resources, and prompts the model can use. One MCP server works with any client that speaks the protocol, so developers stop writing a separate connector for each app.
The short definition of MCP
MCP stands for Model Context Protocol. The protocol defines how a language model talks to software outside the model. Without a shared standard, every AI app builds its own plugin for every service. MCP replaces those one-off plugins with a single message format.
The protocol uses JSON-RPC style messages. A client sends a request, and a server sends back a result. The request might ask for a list of available tools. The result tells the client what each tool does and which inputs it accepts.
MCP is a protocol, not an API. A REST API serves data over HTTP to any program that knows its endpoints. An MCP server sits in front of one or more APIs and describes their capabilities in a form a model can read and choose from.
The three parts of an MCP server
An MCP server offers three kinds of capability to a client. Each kind serves a different purpose, and a server can offer any combination of them.
- Tools are functions the model can call. Examples include creating a support ticket, running a search, or sending a message.
- Resources are read-only data the client can load into context. Examples include a file, a database row, or a log excerpt.
- Prompts are reusable message templates that a user or client can select. They help standardize common tasks such as summarizing a document.
Tools do the most work in agent setups. The model reads each tool description, decides when a tool fits the task, and fills in the required inputs. The server then runs the tool and returns the output to the model.
How an MCP request moves through a session
A session starts when the host launches an MCP client. The client opens a connection to one or more servers. It then asks each server to list its tools, resources, and prompts. The host keeps this list so the model can see what is available.
When the model needs a capability, it selects a tool and supplies arguments. The client sends that call to the right server. The server executes the work, which may include calling an upstream API, and returns a structured result.
- The host starts the client and opens a connection.
- The client asks the server for its capability list.
- The model chooses a tool and sends arguments.
- The server runs the tool and returns JSON output.
- The model reads the output and continues the task.
Each step is visible in the logs. Developers can trace which tool ran, what it received, and what it returned. That trace makes MCP sessions easier to debug than a chain of hidden function calls.
Why developers choose MCP over custom connectors
Custom connectors tie an integration to one application. A team that builds a Slack connector for one assistant must rebuild it for the next assistant. MCP moves that work into a server that any compatible client can reach.
The reuse benefit grows with the number of clients. A team that writes one MCP server for its internal database can expose that database to a coding assistant, a chat app, and an agent framework. The server code stays the same in each case.
MCP also separates the tool owner from the tool user. The owner writes the server and controls which operations it exposes. The user connects the client and grants access. That split keeps credentials and business logic on the server side.
Local and remote MCP transports
MCP runs over a transport, which carries the messages between client and server. Two transports cover most deployments. The choice depends on where the server runs and who needs to reach it.
- stdio runs the server as a local process on the same machine as the client. It suits developer tools and filesystem access.
- HTTP runs the server as a remote service that many clients can reach over the network. It suits hosted tools and shared team services.
A local server needs no network setup. It runs only on the machine where it is installed. A remote server needs authentication and access control, because anyone who reaches the endpoint can call its tools. Teams should set those controls before they share a remote server.
Where APIbase fits in the MCP picture
APIbase is an MCP gateway. It gives an agent one connection point to a large and growing catalog of tools. The catalog spans many categories, and hundreds of providers supply the underlying services.
A gateway removes the work of connecting to each provider separately. The agent connects once, lists the tools that match its task, and calls them through the same protocol. A developer does not need a separate SDK or key for every upstream service in that case.
Tool prices fall between None and None USD. Each tool page in the catalog shows the price for that tool. Check the page before a production run, because prices can change.
How to give an agent MCP tools
Giving an agent MCP tools takes four steps. The steps work the same way for a local server and a hosted gateway. Only the connection details change.
- Choose an MCP client, such as an AI assistant or agent framework, that supports the transport you need.
- Add the server endpoint or launch command to the client configuration.
- Confirm that the client lists the expected tools, resources, and prompts.
- Call one low-cost tool with a test input before you run a full workload.
Read each tool description before you grant access. The description tells the model what the tool does and when to use it. A vague description leads the model to call the wrong tool or to skip a useful one.
Log every tool call during early testing. The log shows which inputs the model chose and what the server returned. Those records help you tighten descriptions and restrict tools that the agent does not need.
Common mistakes when first using MCP
The most frequent mistake is treating MCP as a replacement for REST APIs. MCP does not replace them. The upstream API still serves the data, and the MCP server wraps that API for a model.
A second mistake is exposing too many tools at once. A model with dozens of similar tools chooses more slowly and makes more wrong calls. Expose the smallest set that covers the task.
A third mistake is sharing a remote server without authentication. Anyone who reaches the endpoint can run its tools. Require credentials on every remote server, and rotate them on a schedule.
Live pricing — developer
Data source: live tool catalog snapshot, fetched 2026-12-05.
Chart data as a table
| Tool | Price per call | Cache-hit price |
|---|---|---|
| Usage Time Series | $0.0 | $0.0 |
| Per-Tool Usage Breakdown | $0.0 | $0.0 |
| Usage Summary | $0.0 | $0.0 |
| Call Tool | $0.0 | $0.0 |
| List Tool Categories | $0.0 | $0.0 |
| Describe Tool | $0.0 | $0.0 |
| Discover Tools | $0.0 | $0.0 |
| Global VIN Decode | $0.0 | $0.0 |
| Tool | Provider | Price/call | Cache-hit |
|---|---|---|---|
| Usage Time Series | $None | $None | |
| Per-Tool Usage Breakdown | $None | $None | |
| Usage Summary | $None | $None | |
| Call Tool | $None | $None | |
| List Tool Categories | $None | $None | |
| Describe Tool | $None | $None | |
| Discover Tools | $None | $None | |
| Global VIN Decode | $None | $None |
Connect via MCP
Data source: gateway design, no measured values.
$ curl -X POST https://apibase.pro/api/v1/tools/account.timeseries/call \
-H "Content-Type: application/json" -d '{"params": {}}'FAQ
Is MCP an API?
No. MCP is a protocol that defines how a client and a server exchange requests, results, and capability lists. An API is a set of endpoints that return data or perform actions. An MCP server often calls one or more APIs and presents their capabilities to a model in a standard format.
Does an MCP client need a language model?
The client runs inside a host, such as an AI assistant or agent framework. The host usually drives a language model. The protocol itself does not require a specific model. The model decides which tools to call. The client sends those calls to the server.
Is MCP limited to one AI vendor?
No. MCP is an open protocol. Any host that implements an MCP client can connect to any MCP server that follows the specification. Developers write a server once and reuse it across compatible clients.
What does MCP cost to use?
No protocol fee was verified for this page, so the page does not state one. Costs come from the hosts, servers, and upstream services you use. On APIbase, tool prices fall between None and None USD, and each tool page shows its own price.
Recommended next step
- STEP 1/2 Connect your MCP client
- STEP 2/2 Browse the full catalog
Related guides
Written with AI assistance from APIbase's published documentation and public data; checked automatically against them. Corrections: https://apibase.pro/
Published: 2026-12-05Source: live apibase.pro catalog snapshot