What is Model Context Protocol?
Source: AI Gen, Prompt: Plato discussing philosophy with AI. Roman mural art
MCP AI Agents are able to talk to third party platforms, gather information and combine it with previous conversations and then interact with LLM which will take the decision.
AI agent = automation scipt + intelligence.
They:
- Talk to 3rd-party platforms (via APIs)
- Merge fresh data with past conversations
- Let the LLM decide actions.
Agent → MCP Server → 3rd-Party Tool (API/Websites)
Vendors create their MCP and publish so that others can use them along with their product/service. Some MCP servers are build by communities.
MCP:- Models: LLM, language models
Context: Giving AI context
Protocol: A set of standards
http://modelcontextprotocol.io/ Anyone can build an MCP server base don the guidelines here.
MCP Architecture:
Tools: Executable functions that AI applications can invoke to perform actions (e.g., file operations, API calls, database queries)
Resources: Data sources that provide contextual information to AI applications (e.g., location guides, refund rule document, Wheather history, http://, file://, git://)
Prompts: Reusable templates that help structure interactions with language models (e.g., system prompts, few-shot examples)
Uses JSON-RPC 2.0 APIS for communication between MCP client and server.