MCP (Model Context Protocol) is an open standard that lets AI applications connect to external tools and data through one common interface. A developer wraps a system, such as a database, Tally export or ticketing tool, as an MCP server once, and any MCP-compatible assistant, IDE or agent can then discover and use it.
Summary: the short version
- MCP is an open protocol, released by Anthropic in November 2024 and now governed under the Linux Foundation's Agentic AI Foundation, for connecting AI apps to tools and data.
- A host (the AI app) runs one MCP client per connection; each client talks to an MCP server that exposes tools, resources and prompts.
- MCP turns the apps-times-systems integration problem into apps-plus-systems: build a server once and every compatible host can use it.
- In Python, the official mcp package turns decorated functions into tools; version 2 renamed the FastMCP class to MCPServer.
- MCP does not make a tool safe: least privilege, trusted servers, human approval on writes and logs remain your job.
What is MCP in simple terms?
MCP is a common plug that lets any AI application use any tool or data source that speaks the same protocol. The official site compares it to a USB-C port for AI applications. Before USB-C, every device needed its own cable; before MCP, every AI app needed its own custom integration with every system.
Anthropic released MCP as an open standard in November 2024. Adoption spread quickly across AI assistants, coding tools and agent frameworks, and on 9 December 2025 the Linux Foundation announced the Agentic AI Foundation (AAIF), with MCP as a founding project alongside Block's goose and OpenAI's AGENTS.md. MCP is now governed by a vendor-neutral foundation under the same Linux Foundation umbrella as Kubernetes and PyTorch.
In practice, someone wraps a system (a database, a Tally export, a ticketing tool) as an MCP server. Any MCP-compatible host, such as a desktop assistant, an IDE or your own agent, can then discover what that server offers and use it. If agents themselves are new to you, start with our explainer on what agentic AI is and how agents use tools.
What problem does MCP solve?
MCP solves the "N times M" integration problem: without a shared protocol, every AI app needs a separate connector for every system it touches. Three assistants and five internal systems means fifteen integrations, each written to a different vendor's tool format and each breaking on its own schedule.
The second gain is reuse inside a company. The team that owns the data writes and secures the server once. Finance analysts using a desktop assistant, developers in their IDE and the agent your engineers build next quarter all connect to the same server, with the same permissions and the same audit log.
How does MCP work?
MCP connects a host application, through one client per connection, to servers that expose tools, resources and prompts, using JSON-RPC 2.0 messages. The specification names three roles: the host (the AI app), the client (the connector inside the host) and the server (the service that provides context and capabilities).
| What a server offers | Who triggers it | Example in a CA firm |
|---|---|---|
| Tools | The model decides to call them | find_itc_mismatches() |
| Resources | The app or user attaches them as context | The firm's ITC checklist |
| Prompts | The user picks them, like a slash command | "Monthly ITC review for client X" |
Servers run locally over stdio (the host launches them as a subprocess) or remotely over Streamable HTTP. One update practitioners should know: according to the changelog for the latest revision at the time of writing (2026-07-28), MCP is now stateless. The initialisation handshake and protocol-level sessions are gone, every request carries its own protocol version and capabilities, and the Roots, Sampling and Logging features are deprecated. Tutorials from 2025 that rely on sessions or Sampling are out of date.
How is MCP different from function calling and APIs?
An API exposes a system, function calling lets a model request a tool inside one app, and MCP standardises how tools are described and served so any app can use them. They stack rather than compete: an MCP server usually calls your existing API, and the host turns the server's tool list into function-calling definitions for its model.
| REST API | Function calling | MCP | |
|---|---|---|---|
| What it is | An interface to a system | A model feature for requesting tool calls | An open protocol for serving tools and data to AI apps |
| Tools defined | By the system owner | In each app, in each provider's format | Once, in the server |
| Discovery | Read the docs | Hard-coded in your app | Host lists tools at runtime |
| Best for | Program-to-program calls | One app, a handful of tools | Many AI apps sharing many tools |
MCP connects an agent to tools and data. When agents need to talk to other agents, a separate protocol, Agent2Agent (A2A), does that job; our guide to multi-agent systems covers where A2A fits.
How do you build an MCP server in Python?
Install the official mcp package, create a server object, decorate ordinary Python functions as tools or resources, and run it. Type hints and docstrings become the schema and description the model sees, so write them carefully.
# gst_recon_server.py pip install "mcp[cli]" (tested with mcp 2.3.0, Nov 2026)
from mcp.server import MCPServer
mcp = MCPServer("gst-recon")
# Dummy rows. In practice: the client's Tally purchase register and GSTR-2B export.
BOOKS = [("27AABCS1234F1Z5", "INV-101", 9000), ("29AAGCR5678K1Z2", "RK/2231", 21600),
("07AAFCD4321M1Z9", "D-778", 5400)]
GSTR_2B = {("27AABCS1234F1Z5", "INV-101"): 9000, ("29AAGCR5678K1Z2", "RK/2231"): 20160}
@mcp.tool()
def find_itc_mismatches(tolerance: int = 10) -> list[dict]:
"""List purchase invoices whose GST is missing from GSTR-2B or differs
from the books by more than `tolerance` rupees. Read-only."""
issues = []
for gstin, inv, books_tax in BOOKS:
portal_tax = GSTR_2B.get((gstin, inv))
if portal_tax is None:
issues.append({"gstin": gstin, "invoice": inv, "issue": "not in GSTR-2B"})
elif abs(portal_tax - books_tax) > tolerance:
issues.append({"gstin": gstin, "invoice": inv,
"issue": f"books {books_tax}, 2B {portal_tax}"})
return issues
@mcp.resource("gst://rules/itc")
def itc_rules() -> str:
"""The firm's checklist for claiming input tax credit."""
return "Claim ITC only if the invoice is in GSTR-2B and tax matches within Rs 10."
if __name__ == "__main__":
mcp.run() # stdio by default; mcp.run(transport="streamable-http") to serve over HTTPA version note: in version 1.x of the SDK this same pattern was called FastMCP (from mcp.server.fastmcp import FastMCP). Version 2, released in July 2026, renamed it to MCPServer, as the SDK's v2 migration guide explains; pin mcp<2 if you are following an older tutorial. We ran the file above on mcp 2.3.0 before publishing. Run mcp dev gst_recon_server.py to open the MCP Inspector (it needs Node.js) and call the tool by hand. To use it from Claude Desktop, add it to claude_desktop_config.json:
{
"mcpServers": {
"gst-recon": {
"command": "python",
"args": ["C:\\gst\\gst_recon_server.py"]
}
}
}Notice that most of the server is ordinary tool design: clear names, typed arguments, narrow permissions. That skill transfers. In Ivy Professional School's Advanced Generative AI course, learners write custom tools and API integrations for LangGraph agents; once you can write a good tool, wrapping it as an MCP server is a short step.
What does MCP look like in a CA firm's GST reconciliation?
A CA firm can wrap its reconciliation data in one read-only MCP server, so partners and article assistants ask questions in plain English instead of building VLOOKUPs for every client. The scenario is a composite; numbers are illustrative.
Picture a Kolkata CA firm handling GST compliance for about 80 business clients. Each month, article assistants match every client's purchase register (exported from Tally) against GSTR-2B to find input tax credit that cannot be claimed: invoices the supplier never uploaded, or uploaded with different tax. For a client with 600 purchase invoices a month, this is a day of Excel work, and the follow-up emails to suppliers take another.
- The firm's tech-savvy manager builds a server with three read-only tools: list clients, find mismatches for a GSTIN and period, and draft supplier follow-ups.
- Monthly exports land in a fixed folder; the server reads only that folder.
- A partner asks the assistant: "For client 14, March: mismatches above ₹5,000, grouped by supplier."
- The assistant calls the tools and drafts emails. A person reviews and sends them.
What stays out of the server matters most. No GST portal credentials, no filing actions and no outbound email. The source files stay on the firm's machines, but whatever a tool returns is sent to the assistant's model provider, so the tools return invoice-level mismatches, not whole registers. Check the provider's data-retention terms against your engagement letters and the DPDP Act, 2023 before a partner points it at live client data. Because the logic sits in one server, the reconciliation rules are written down once and every user gets the same answer.
When we run Ivy's AI for Finance workshop for finance teams, reconciliation is the use case people ask about first. The ones who succeed start read-only and keep "send" and "file" with a human.
Is MCP secure?
MCP itself is a protocol, so security depends on the servers you trust and the permissions you grant; the specification says it cannot enforce its security principles at the protocol level. The spec asks hosts to obtain user consent before invoking tools and to treat tool descriptions as untrusted unless the server is trusted. Map the risks to the OWASP Top 10 for LLM applications:
- Prompt injection (LLM01): a supplier's invoice PDF containing "ignore previous instructions" reaches the model through a tool result.
- Supply chain (LLM03): a random server from a code repository can run code on your machine. Install only from sources you trust and read the code.
- Excessive agency (LLM06): a server that can delete, pay or send when the task only needed reading.
- Tool poisoning: a malicious server's tool description quietly instructs the model to misuse other tools.
Treat every MCP server like a new employee with system access: least privilege, separate credentials, logs you actually read, and a named owner.
When should you not use MCP?
Skip MCP when one app uses a couple of tools, or when there is no AI model choosing actions at all. Plain function calling inside your app is simpler for a single chatbot with two tools. A nightly batch job that moves data between systems needs an ordinary pipeline, not an AI protocol.
MCP pays off when the same system will be used by more than one AI app or team. If you cannot name the second consumer, write a function now and wrap it in MCP later. It takes an afternoon.
How do you start using MCP at work?
Start by consuming one trusted server read-only, then build one small server for a system your team queries every day.
- Check which of your AI tools (desktop assistant, IDE, agent framework) support MCP today.
- Connect one official, read-only server, such as a file or documentation server, and try it for a week.
- Pick one internal system your team looks things up in daily and list three read-only questions about it.
- Build a server with those three tools; write clear docstrings and typed parameters.
- Test it in the MCP Inspector before connecting a model.
- Agree who owns the server, what credentials it uses and where its logs go.
Rolling MCP out across departments? Settle at leadership level which systems agents may touch, and in what order; our AI for Leaders and CXOs workshop helps leadership teams rank AI use cases by value, feasibility and risk.
Frequently asked questions
What does MCP stand for in AI?
MCP stands for Model Context Protocol. It is an open standard for connecting AI applications such as assistants, IDEs and agents to external tools and data sources through MCP servers, so one integration can be reused by any compatible application instead of being rebuilt for each one.
Is MCP only for Claude?
No. Anthropic created MCP, but it is an open protocol now governed under the Linux Foundation's Agentic AI Foundation. At the time of writing, many AI assistants, coding tools and agent frameworks from different vendors support it. Check the current documentation of the specific tool you use.
What is the difference between MCP and an API?
An API exposes a system to other programs. MCP is a protocol for exposing tools and data specifically to AI applications in a standard, discoverable way. An MCP server usually calls an existing API behind the scenes and describes it so any MCP host can use it.
What is an MCP server?
An MCP server is a small program that wraps a system, such as a database, file store or business application, and offers its capabilities as tools, resources and prompts. It can run locally over stdio or remotely over HTTP. The server decides what the AI is allowed to do with that system.
Is MCP safe to use with company data?
It can be, if you control which servers run and what they can access. Use servers from trusted sources, give them least-privilege credentials, keep write actions behind human approval and log every tool call. Remember that tool results are sent to the model provider. Prompt injection through tool results is the main risk to design against.
Sources
- Model Context Protocol. "Specification" (revision 2026-07-28). https://modelcontextprotocol.io/specification/2026-07-28
- Anthropic. "Introducing the Model Context Protocol." 2024. https://www.anthropic.com/news/model-context-protocol
- Linux Foundation. "Linux Foundation Announces the Formation of the Agentic AI Foundation." 2025. https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation
- Model Context Protocol. "Key Changes" (changelog, revision 2026-07-28). https://modelcontextprotocol.io/specification/2026-07-28/changelog
- Model Context Protocol. "Python SDK" (GitHub). https://github.com/modelcontextprotocol/python-sdk
- OWASP GenAI Security Project. "Top 10 for LLM Applications 2025." https://genai.owasp.org/llm-top-10/

By