A universal RPC layer that lets agents call functions in any language across network boundaries.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add agentrpc --env AGENTRPC_API_SECRET='<AGENTRPC_API_SECRET>' --env ANGENTRPC_API_SECRET='<ANGENTRPC_API_SECRET>' -- npx -y agentrpc mcp~/.codex/config.toml
[mcp_servers.agentrpc]
command = "npx"
args = ["-y", "agentrpc", "mcp"]
env = { AGENTRPC_API_SECRET = "<AGENTRPC_API_SECRET>", ANGENTRPC_API_SECRET = "<ANGENTRPC_API_SECRET>" }
# codex mcp add agentrpc --env AGENTRPC_API_SECRET='<AGENTRPC_API_SECRET>' --env ANGENTRPC_API_SECRET='<ANGENTRPC_API_SECRET>' -- npx -y agentrpc mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentrpc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentrpc": {
"command": "npx",
"args": [
"-y",
"agentrpc",
"mcp"
],
"env": {
"AGENTRPC_API_SECRET": "<AGENTRPC_API_SECRET>",
"ANGENTRPC_API_SECRET": "<ANGENTRPC_API_SECRET>"
}
}
}
}Environment variables
AGENTRPC_API_SECRETANGENTRPC_API_SECRET
Replace the placeholders with your own credentials and keep them out of version control.