MCP enables developers to build secure, two-way connections between their data sources and AI-powered tools through a simple architecture: developers can either expose their data through MCP servers or build AI applications (MCP clients) that connect to these servers.

Starting an MCP Server

The TypeScript SDK includes an MCP server that can be started using:

AGENTRPC_API_SECRET=<YOUR_API_SECRET> npx agentrpc mcp

This allows you to connect your data sources to AI assistants like Claude, enabling them to access relevant information and produce better responses.

Cursor

Add the following to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "agentrpc": {
      "command": "npx",
      "args": ["-y", "agentrpc", "mcp"],
      "env": {
        "AGENTRPC_API_SECRET": "<YOUR_API_SECRET>"
      }
    }
  }
}

More details

Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "agentrpc": {
      "command": "npx",
      "args": ["-y", "agentrpc", "mcp"],
      "env": {
        "AGENTRPC_API_SECRET": "<YOUR_API_SECRET>"
      }
    }
  }
}

More details