πWhat MCP Is
The Model Context Protocol (MCP) is an open standard for connecting AI applications to tools and data. Instead of writing a custom integration for every pair of AI app and service, you write an MCP server once for your service, and any MCP client, such as a chat assistant, an IDE, or your own agent, can discover and use it.
A common analogy is a USB port for AI: one shape of plug, many devices. For engineers building agents, MCP has become a core skill because it is how agents reach the systems where real work happens: databases, ticketing tools, code repositories, internal APIs.
πThe Building Blocks
A server can expose three kinds of capability:
get_order(order_id) or create_ticket(title, priority).πTransports
MCP messages are JSON-RPC. Two transports are common:
πHow a Tool Call Flows
The model never talks to your systems directly. Your server decides what is possible, which is exactly where you enforce safety.
πBuilding a Small MCP Server in Python
The official Python SDK keeps a basic server short:
from mcp.server.fastmcp import FastMCPmcp = FastMCP("orders")@mcp.tool()def get_order(order_id: str) -> dict: """Fetch an order's status, items and delivery date by its ID.""" return orders_db.fetch(order_id)@mcp.tool()def request_refund(order_id: str, reason: str) -> str: """Create a refund request. A human must approve it before money moves.""" return refunds.create_pending(order_id, reason)if __name__ == "__main__": mcp.run()The function names, type hints and docstrings become the tool schema the model sees, so write them as carefully as you would write an API for another team.
πDesigning Good MCP Tools
πSecurity Rules You Cannot Skip
πMCP vs Function Calling
Function calling is the model API feature that lets a model request a call to a function you defined in your own code. MCP standardises how those tools are packaged, discovered and served, so they can be reused across many AI applications. Inside one application you can use plain function calling; once tools need to be shared across assistants, IDEs and agents, MCP saves you from rewriting integrations.
πWhere MCP Fits in Agentic AI
In an agent, MCP servers are the hands. The agent framework, such as LangGraph or the OpenAI Agents SDK, handles planning, state and orchestration, and calls MCP tools to act. See how the frameworks compare in AI agent frameworks compared, and the full learning path in the Agentic AI roadmap.
πFrequently Asked Questions
Is MCP only for Claude?
No. MCP is an open protocol with SDKs in several languages, and it is supported by a wide range of AI applications, IDEs and agent frameworks across model providers.Do I need MCP to build an AI agent?
No. A single agent can use direct function calling. MCP becomes valuable when the same tools should be reusable across several AI applications or teams, or when you want to plug into existing MCP servers instead of writing integrations.What is a good MCP project for a portfolio?
An MCP server for a real API, for example a GitHub, database or ticketing integration, with two to four well-designed tools, input validation, an approval step for write actions, logging and a short demo of an agent using it.Which language should I use for an MCP server?
Python and TypeScript have the most mature SDKs and examples. Java, C# and other languages also have SDKs, so backend teams can build servers in the language their services already use.πLearn It Live
You build and secure MCP servers, and connect agents to them, in Prakalpana's Agentic AI course, taught live online with an optional 1-on-1 track. WhatsApp or call +91 9180377502 for a free consultation.