Model Context Protocol.
A protocol for seamless integration between LLM applications and external data sources.
- 2024幎11æã«ãAnthropicãçºè¡šããã¯ã©ã€ã¢ã³ã-ãµãŒããŒééä¿¡ã®ãããã³ã«.
- éä¿¡ãããã³ã«ãå®ããLLMã«ã³ã³ããã¹ããæž¡ãæ¹æ³ãæšæºåããããšãç®ç.
- èªç¶èšèªã§æç€ºã§ããLLMã®ããã®ðAPI.
- AIã¢ããªã±ãŒã·ã§ã³çšã®USB-CããŒãã®ãããªãã®
https://github.com/modelcontextprotocol
ã§ããããš
- ãã¡ã€ã«ã¢ã¯ã»ã¹
- Webã¢ã¯ã»ã¹/ãã©ãŠã¶æäœ
Core Architecture
- Hosts are LLM applications (like Claude Desktop or IDEs) that initiate connections
- Clients maintain 1:1 connections with servers, inside the host application
- Servers provide context, tools, and prompts to clients
- Local Data Sources: Your computerâs files, databases, and services that MCP servers can securely access
- Remote Services: External systems available over the internet (e.g., through APIs) that MCP servers can connect to
âã¯ã©ã€ã¢ã³ããµãŒãã¢ãã«(Client/Server)
ref. Core architecture - Model Context Protocol
Core components
- ãããã³ã«å±€ïŒProtocol layerïŒ: ã¡ãã»ãŒãžã®ãã¬ãŒãã³ã°ããªã¯ãšã¹ã/ã¬ã¹ãã³ã¹ã®é¢é£ä»ããé«ã¬ãã«ãªéä¿¡ãã¿ãŒã³ãæ±ã
- ãã©ã³ã¹ããŒãå±€ïŒTransport layerïŒ: ã¯ã©ã€ã¢ã³ããšãµãŒããŒéã®å®éã®éä¿¡ãæ±ã
- ã¡ãã»ãŒãžã¿ã€ã: ãªã¯ãšã¹ãïŒRequestïŒ: å¿çãæåŸ ããã¡ãã»ãŒãžãmethod ãšãªãã·ã§ã³ã® params ãå«ã
Transport Layer
- JSON-RPC 2.0
MCP Servers
ããŒã¿ãœãŒã¹åŽ
https://github.com/modelcontextprotocol/servers
- Filesystem MCP Server: ããŒã«ã«ãã¡ã€ã«ã·ã¹ãã ã¢ã¯ã»ã¹.
- desktop-commander: WSLãLinuxãªã©ã®ãã¡ã€ã«ã·ã¹ãã ã¢ã¯ã»ã¹.
- blender MCP: https://github.com/ahujasid/blender-mcp
Smithery
- https://smithery.ai/: ãã¹ãã£ã³ã°ãµã€ã.
Docker MCP(Docker Desktop/AI Tools)
ããã¯dockerã®æäœãšããããããdockerãã€ãã£ãããŒã«ã«MCP serveræ§ç¯.
Config
%APPDATA%\Claude\claude_desktop_config.json
MCP Hosts/Clients
LLM applications that initiate connections.
Hosts
çŸç¶ã§ã¯ãã®ïŒã€ãäžåŒ·.
- ð¥Claude for Desktop
- ðCursor
- Windsurf