Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Model Context Protocol (MCP)

NotificationsYou must be signed in to change notification settings

asinghcsu/model-context-protocol-survey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation


📑 Table of Contents


Model Context Protocol (MCP): Empowering Agentic AI Interactions

TheModel Context Protocol (MCP) provides a structured, standardized way forLarge Language Models (LLMs) to seamlessly interact with external tools, resources, and systems—much like how APIs and Language Server Protocols revolutionized application integration. MCP empowers the next generation ofagentic AI by enabling autonomous, secure, and context-rich interactions.


Comparative Analysis: MCP vs Traditional APIs

FeatureTraditional APIsModel Context Protocol (MCP)
Tool UsageManual, bespoke codeDynamic, standardized calls
Prompt InteractionBasic text-basedStructured and context-aware
Context HandlingLimitedIntegrated, built-in
DiscoveryManualDynamic and introspective
SecurityVaries widelyEnforced mechanisms

MCP Architecture Overview

Overview of MCP Client-Server Architecture

Fig. 1: MCP Client-Server Architecture.


MCP Core Concepts

Resources

  • Structured External Data: Exposes content such as text, audio, PDFs, system logs, and databases.
  • Types: Text Resources (e.g., JSON, source code) and Binary Resources (e.g., PDFs, videos).
  • Discovery: Via endpoints likeresources/list and URI templates.

Prompts

  • Reusable Templates: For standardized LLM interactions.
  • Dynamic Context Injection: Supports arguments and multi-step workflows.
  • Access Points: Viaprompts/list andprompts/get.

Tools

MCP Tools

Fig. 2: Tools provide active invocation using defined JSON schemas.

  • Executable Capabilities: Trigger actions and external system calls.
  • Definition: Each tool is defined with a name, description, input/output schema, and validation.
  • Invocation: Accessed viatools/list and invoked usingtools/call.

Sampling

MCP Sampling Flow

Fig. 3: Secure and contextual LLM completions via MCP sampling.

  • Server-Initiated: Sends messages to the LLM through the client.
  • Human-in-the-Loop: Incorporates review/approval for secure execution.
  • Control Parameters: Enables fine-tuning (temperature, token limits, etc.).

Roots

MCP Roots

Fig. 4: Roots define operational boundaries using URIs.

  • Logical Boundaries: Define scopes (directories, API endpoints) for resource access.
  • Multi-Context Support: Enables composable, dynamic agent workflows.

Transport Layer

  • Real-Time Communication: Utilizes secure HTTP/SSE channels.
  • Reliable Messaging: Ensures structured, bidirectional interaction.

Agentic AI & Composability

MCP is a catalyst foragentic AI, enabling autonomous agents to interact, collaborate, and chain tasks dynamically.

  • Dual Role Components: MCP nodes act as both clients and servers.
  • Dynamic Agent Chaining: Supports complex workflows with an orchestrator triggering specialized sub-agents.
  • Human Oversight: Built-in review processes ensure security and reliability.
Agentic AI & Composability

Fig. X: Dynamic agent chaining enabled by MCP composability.

Agentic AI & Composability

Fig. y: Multi Agent Orchestrator.


End-to-End MCP Workflow

MCP Workflow Example

Fig. 5: Customer Support Chatbot Workflow powered by MCP.

Workflow Highlights:

  1. Capture & Send: Client submits a structured prompt.
  2. Secure Transport: Data is exchanged via the Transport Layer.
  3. Dynamic Invocation: Server retrieves tools and resources as needed.
  4. Sampling & Review: Server requests LLM completions with human oversight.
  5. Response Generation: Outputs are returned in a clear, structured format.

🧠 AI Frameworks with MCP Integration

FrameworkDescriptionIntegration Link
LangChainLightweight wrapper for making Anthropic MCP tools compatible with LangChain and LangGraph.langchain-ai/langchain-mcp-adapters
CrewAIProvides an MCP server to manage and trigger deployed CrewAI workflows.crewAIInc/enterprise-mcp-server
LlamaIndexIntegration for connecting LlamaIndex tools with MCP tools usingllama-index-tools-mcp.llama-index-tools-mcp

Example Clients – Feature Support Matrix

ClientResourcesPromptsToolsSamplingRootsNotes
Claude Desktop AppFull support for all MCP features
5ireSupports tools.
BeeAI FrameworkSupports tools in agentic workflows.
ClineSupports tools and resources.
ContinueFull support for all MCP features
CursorSupports tools.
Emacs McpSupports tools in Emacs.
Firebase Genkit⚠️Supports resource list and lookup through tools.
GenAIScriptSupports tools.
GooseSupports tools.
LibreChatSupports tools for Agents.
mcp-agent⚠️Supports tools, server connection management, and agent workflows.
otermSupports tools.
Roo CodeSupports tools and resources.
Sourcegraph CodySupports resources through OpenCTX.
SuperinterfaceSupports tools.
TheiaAI/TheiaIDESupports tools for Agents in Theia AI and the AI-powered Theia IDE.
Windsurf EditorSupports tools with AI Flow for collaborative development.
ZedPrompts appear as slash commands.
SpinAISupports tools for Typescript AI Agents.
OpenSumiSupports tools in OpenSumi.
Daydreams AgentsSupport for drop-in servers to Daydreams agents.

Reference & Third-Party Servers

ServerDescriptionLink
AWS KB RetrievalRetrieves data from the AWS Knowledge Base using Bedrock Agent Runtime.GitHub
Google DriveEnables file access and search within Google Drive.GitHub
Google MapsProvides location services, directions, and place details.GitHub
RedisInteracts with Redis key-value stores for caching and data management.GitHub
PostgreSQLOffers read-only database access with schema inspection.GitHub
CloudflareDeploys, configures, and interrogates resources on the Cloudflare platform.GitHub
StripeIntegrates with Stripe API to manage payments, customers, and refunds.GitHub
Neo4jProvides interaction with Neo4j Graph Database for graph-based operations.GitHub
ApifyLeverages pre-built cloud tools to extract data from websites and APIs.GitHub

📦 MCP SDK Information

SDK NameLanguageDescriptionLink
TypeScript MCP SDKTypeScriptA comprehensive SDK to build MCP servers and clients in TypeScript.GitHub
Python MCP SDKPythonA robust SDK for implementing MCP servers and clients in Python.GitHub
Java MCP SDKJavaSDK for building and managing MCP infrastructure in Java.GitHub
Kotlin MCP SDKKotlinKotlin-native SDK for MCP client-server communication.GitHub
C# MCP SDKC#SDK for .NET/C# developers to integrate MCP functionality.GitHub

[8]ページ先頭

©2009-2025 Movatter.jp