Model context protocol (MCP)
Model context protocol is a standard shipped by antropicAI for communication between AI capable application (claude-desktop, VScode ecc..) and external tools, the concept is similar to LSP where a sort of proxy component is deployed between the AI application and the external tool:
flowchart LR
subgraph AI_applications
direction TB
A[claude-desktop]
B[vscode]
end
subgraph external_tools
direction TB
D[grafana]
E[github]
F[gitlab]
G[filesystem]
H[database]
end
C{{MCP server}}
AI_applications --JSON RPC--> C -- http/api --> external_tools
The MCP server expose an endpoint that talks JSON-RPC with a set of defined methods:
toolsresourcesprompts
For each of this the following submethods are defined
listget
🔷 Note
For tools and prompts
callis also implemented