loading…
Search for a command to run...
loading…
Provides system-specific metadata through a tool that returns data for a given category.
Provides system-specific metadata through a tool that returns data for a given category.

MCP uses a structured three-tier model to separate the AI's reasoning from the technical execution of tools.
Host: The primary application (e.g., Claude Desktop, Cursor, or a custom IDE) that the user interacts with.
Client: A component within the Host that manages the connection, security, and protocol negotiation with the server.
Server: A lightweight, specialized service that exposes specific data (Resources), logic (Tools), or context (Prompts) to the AI.


The FastMCP SDK provides a high-level abstraction for building servers quickly.
Tools allow the LLM to perform actions, such as querying a database or interacting with a local API.
from mcp.server.fastmcp import FastMCP
# 1. Initialize the FastMCP server instance
mcp = FastMCP("SystemManager")
# 2. Define a tool using the @mcp.tool decorator
@mcp.tool()
def get_system_info(category: str) -> str:
\"\"\"Provides system-specific metadata.\"\"\"
return f"Data for {category}"

MCP relies on JSON-RPC 2.0 for all messaging. This ensures that every request from the client and every response from the server follows a strict, predictable format.

To move JSON-RPC messages between the Client and Server, MCP defines two primary "pipes" or transport layers:
Used primarily for local integrations where the server runs as a subprocess.

Used for remote or networked servers.
Server-Sent Events (SSE): The server sends events to the client.
HTTP POST: The client sends commands back to the server.
Scalability: Allows the AI to connect to tools hosted in the cloud.

Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"systemmanager": {
"command": "npx",
"args": []
}
}
}