Model Guides

Token, API and MCP explained: what the three AI terms mean for cost and control

Tokens decide what an AI task costs and how much the model can remember, the API lets programs use the model directly, and MCP connects it to your tools. A plain guide with current prices and the permission rules to know.

Milo · FoxAI World5 min read
18
Milo holds a tablet beside the Anthropic name and icons of coins, AI, cloud tools and a protected server.Three AI terms

Conceptual cover created with AI.

You read an AI headline: a new model has a bigger context window, prices per million tokens have dropped, and some app now supports MCP. Three terms, and each one says something practical about cost, access and what the AI can reach. Here is what they mean, without the engineering detail.

What is a token?

A token is the smallest unit a language model reads and writes. Anthropic’s documentation describes it as a piece that can match a whole word, part of a word, a single character or even a byte. You never see tokens in a chat window, but every message is converted into them before the model processes it.

How much text fits into one token is not fixed. According to Anthropic, it depends on the model and on the language. On earlier Claude models, one token was roughly 3.5 English characters. Claude 4.7 and later models use a newer tokenizer that produces about 30 percent more tokens for the same text. That is why the same paragraph can count differently across models and languages. Languages that attach many suffixes to one word, such as Turkish or German compounds, are often split into more pieces. If you need exact numbers, Anthropic points to its token counting tool for the specific model you plan to use.

Milo sits behind an Anthropic laptop with coins and icons of documents, servers, connections and access controls.
AI-generated conceptual illustration.

How tokens connect to cost and memory

Start with the job you need done, because tokens touch three practical things.

Cost. AI services that you use through their programming interface bill per token, not per word. Anthropic’s price list counts input tokens (what you send) and output tokens (what the model writes) separately, per million tokens. Output is the more expensive side. Claude Sonnet 5.5, for example, costs 2 dollars per million input tokens and 10 dollars per million output tokens. Claude Haiku 5.5 costs 0.10 dollars in and 0.50 dollars out for prompts up to 100,000 tokens. A clear, compact request that asks for exactly what you need is therefore cheaper than a vague one that produces a long answer.

Memory. The context window is the amount of text a model can look back on while answering. Anthropic calls it the model’s working memory, separate from everything it learned in training. A long chat and attached files fill that window. A larger window lets the model handle longer prompts and stay coherent over longer conversations; a smaller one limits that.

Speed. Models generate their answer one token after another. That is why text appears gradually on screen, and why longer answers take longer.

What is an API, and what is the key for?

An API (application programming interface) is an agreed set of rules for how one piece of software talks to another. When you type into a chat website, you use an interface built for people. Through the API, a program sends the same kind of request directly to the model and receives the answer back, for example to process a hundred product descriptions in one run instead of pasting them one by one.

Access to an API usually works with an API key, a secret string tied to your account. Usage made with it is billed to you, calculated from the input and output tokens described above. In practice, treat the key like a password: do not share it, do not show it in screenshots and do not leave it in publicly visible code.

What MCP adds on top of an API

The Model Context Protocol (MCP) is an open standard that Anthropic announced on 25 November 2024. Its goal: one common way to connect AI assistants to the systems where data and tools live. Before MCP, as Anthropic put it, every new data source needed its own custom integration, which made connected systems hard to scale.

Anthropic’s glossary compares MCP to a USB-C port for AI applications. A tool offers an MCP server that describes what it provides. The specification lists three kinds of features: resources (data and context), prompts (prepared message templates) and tools (functions the model can run). An AI application acts as the host and connects to these servers through clients. At launch, Anthropic released ready-made servers for Google Drive, Slack, GitHub, Git, Postgres and Puppeteer, and open-sourced the specification and SDKs.

The practical difference: with a plain API, a developer writes custom code for every service. With MCP, one integration pattern works across many tools, and the model can read what each server offers before deciding what to use.

What to watch before connecting tools

Because MCP tools can perform real actions, the specification is explicit about control. Users must explicitly consent to data access and operations, and hosts must obtain explicit user consent before invoking any tool. Descriptions of tool behaviour should be treated as untrusted unless they come from a trusted server. The specification also admits that MCP itself cannot enforce these principles at the protocol level; the application you use has to build them in.

Our assessment: these three terms are worth learning less for the vocabulary than for the decisions behind them. Tokens tell you what a task will cost and how much the model can keep in view. The API tells you whether you can automate it. MCP tells you which of your tools the AI can reach, and that is where caution pays off. A sensible starting point is to connect only what a task needs, prefer read-only access at first and widen permissions once a setup has proven reliable.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.