Model Context Protocol.
MCPãšã¯
A protocol for seamless integration between LLM applications and external data sources.
- 2024幎11æã«ãAnthropicãçºè¡šããã¯ã©ã€ã¢ã³ã-ãµãŒããŒééä¿¡ã®ãããã³ã«.
- éä¿¡ãããã³ã«ãå®ããLLMã«ã³ã³ããã¹ããæž¡ãæ¹æ³ãæšæºåããããšãç®ç.
- èªç¶èšèªã§æç€ºã§ããLLMã®ããã®ðAPI.
- AIã¢ããªã±ãŒã·ã§ã³çšã®USB-CããŒãã®ãããªãã®
- AI ãã·ã¹ãã ã«ã¢ã¯ã»ã¹ããæã®ãæ¥ç¶ã®ãããããã«ãŒã«åãããã®
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
ããŒã¿ãœãŒã¹åŽ
Functions
3ã€ã®äž»èŠæ©èœ.
- ModelïŒAI ã¢ãã«ã®ããã®ïŒ
- ContextïŒæç€ºããããµãŒãã¹ã®æ å ±ã»å©ç𿹿³ãªã©ã®ïŒ
- ProtocolïŒå ±éã«ãŒã«ïŒ
Index
https://github.com/modelcontextprotocol/servers
- Filesystem MCP Server: ããŒã«ã«ãã¡ã€ã«ã·ã¹ãã ã¢ã¯ã»ã¹.
- desktop-commander: WSLãLinuxãªã©ã®ãã¡ã€ã«ã·ã¹ãã ã¢ã¯ã»ã¹.
- blender MCP: https://github.com/ahujasid/blender-mcp
- Youtube MCP:
- https://github.com/anaisbetts/mcp-youtube, API_KEYäžèŠ.
- https://github.com/ZubeidHendricks/youtube-mcp-server, 倿©èœãAPIæºæ .
dev
- github: https://github.com/github/github-mcp-server
- context7: versionããšã®ããã¥ã¡ã³ãåç §
Smithery
- https://smithery.ai/: ãã¹ãã£ã³ã°ãµã€ã.
Docker MCP(Docker Desktop/AI Tools)
ããã¯dockerã®æäœãšããããããdockerãã€ãã£ãããŒã«ã«MCP serveræ§ç¯.
Refs
MCP Hosts
LLM applications that initiate connections.
çŸç¶ã§ã¯ãã®ïŒã€ãäžåŒ·.
- ð¥Claude for Desktop
- ðCursor
- Windsurf
MCP Client
Specs
Topics
npx vs npm install
åºæ¬æ¹éã¯npx.
- npx
- èªåã¢ããããŒã. 宿çãªupdateäžèŠ.
- ããããå¿ èŠ.
- æ°ç§èµ·åãé ã.
- npm i
- ãªãã©ã€ã³ã§å©çšã§ãã
- æ°ç§npxãããæ©ã.