# AgentRPC

Universal RPC layer for AI agents across network boundaries and languages

Command:npx
Updated: 7/4/2025

[AgentX](https://www.agentx.so/) allows you connect AI agents with thousands of the most popular apps through MCP, so you can automate your AI workflow and have more time for what matters most — no code required.

## Installation

Run AgentRPC MCP server on AgentX without a single line of code.

[Check out our docs](https://www.agentx.so/mcp/docs#installation)

Or run AgentRPC MCP server on your terminal:

`npx -y agentrpc mcp`

Run this command to start the AgentRPC MCP server.

## Required Environment Variables

ANGENTRPC_API_SECRET - Required

Make sure to set these environment variables before running the server.

## Command Arguments

→ -y

→ agentrpc

→ mcp

## Server Information

Command: npx

Arguments: 3

Env Variables: 1

Order: 27

Last Updated: 7/4/2025

Created: 5/8/2025

## Documentation

### Overview

AgentRPC allows you to connect to any function, in any language, across network boundaries. It's ideal when you have services deployed in:

- Private VPCs
- Kubernetes clusters
- Multiple cloud environments

AgentRPC wraps your functions in a universal RPC interface, connecting them to a hosted RPC server accessible through open standards:

- Model Context Protocol (MCP)
- OpenAI-compatible tool definitions (OpenAI, Anthropic, LiteLLM, OpenRouter, etc.)

<p align="center">
<img src="./assets/deployment.png" alt="deployment" width="500">
</p>

### How It Works

1. **Registration**: Use our SDK to register functions and APIs in any language
2. **Management**: The AgentRPC platform (api.agentrpc.com) registers the function and monitors its health
3. **Access**: Receive OpenAPI SDK compatible tool definitions and a hosted MCP server for connecting to compatible agents

### Key Features

| Feature | Description |
| --- | --- |
| **Multi-language Support** | Connect to tools in TypeScript, Go, Python and .NET (coming soon) |
| **Private Network Support** | Register functions in private VPCs with no open ports required |
| **Long-running Functions** | Long polling SDKs allow function calls beyond HTTP timeout limits |
| **Full Observability** | Comprehensive tracing, metrics, and events for complete visibility |
| **Automatic Failover** | Intelligent health tracking with automatic failover and retries |
| **Framework Compatibility** | Out-of-the-box support for MCP and OpenAI SDK compatible agents |

## Getting Started

### Quick Start

Follow the [quick start](https://docs.agentrpc.com/quickstart) example on our docs site.

### Examples

Explore working examples in the [examples](https://github.com/agentrpc/agentrpc/blob/main/examples) directory.

## MCP Server

The AgentRPC TypeScript SDK includes an optional MCP (Model Context Protocol) server.

```
ANGENTRPC_API_SECRET=YOUR_API_SECRET npx agentrpc mcp
```

This launches an MCP-compliant server for external AI models to interact with your registered tools.

### Claude Desktop Integration

Add to your `claude_desktop_config.json`:

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

### Cursor Integration

Add to your `~/.cursor/mcp.json`:

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

## License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

This repository contains all the open-source components and SDKs for AgentRPC.

## Explore More MCP Servers

Discover other popular Model Context Protocol servers.

- **YouTube DLP**
  - MCP Server
  - Lets your AI interact with YouTube videos - search videos, extract video information, subtitles, and top comments without downloading.
  - Command: `uvx youtube-dlp-server`
  - [View Details](https://www.agentx.so/mcp/youtube-dlp)

- **Yahoo Finance**
  - MCP Server
  - Lets your AI agents interact with Yahoo Finance - get comprehensive stock market data, news, financials, and more.
  - Command: `uvx yahoo-finance-server`
  - [View Details](https://www.agentx.so/mcp/yahoo-finance)

- **Apollo io**
  - MCP ServerAPI
  - Enabling AI agents to interact with Apollo.io data for people and organization search and enrichment.
  - Command: `npx -y @agentx-ai/apollo-io-mcp-server`
  - [View Details](https://www.agentx.so/mcp/apollo-io)

- **ActiveCampaign**
  - MCP ServerAPI
  - Intelligent marketing automation platform
  - Command: `uvx ac-mcp-server`
  - [View Details](https://www.agentx.so/mcp/activecampaign)

- **Google Maps**
  - MCP ServerAPI
  - Use Google Maps knowledge directly in your agent by providing your API key.
  - Command: `npx -y @modelcontextprotocol/server-google-maps`
  - [View Details](https://www.agentx.so/mcp/google-maps)

- **Notion**
  - MCP Server
  - MCP Server for the Notion API, enabling LLM to interact with Notion workspaces.
  - Server: ` https://mcp.notion.com/sse`
  - [View Details](https://www.agentx.so/mcp/notion)

- **Perplexity**
  - MCP ServerAPI
  - Integrate Perplexity as a search engine for your agent.
  - Command: `npx -y server-perplexity-ask`
  - [View Details](https://www.agentx.so/mcp/perplexity)

- **AirTable**
  - MCP ServerAPI
  - Read and write access to Airtable databases, with schema inspection.
  - Command: `npx -y airtable-mcp-server`
  - [View Details](https://www.agentx.so/mcp/airtable)

- **Salesforce**
  - MCP ServerAPI
  - A (MCP) server implementation for Salesforce integration, allowing AI to interact with Salesforce data through SOQL queries and SOSL searches.
  - Command: `uvx --from mcp-salesforce-connector ...`
  - [View Details](https://www.agentx.so/mcp/salesforce)

- **Mailchimp**
  - MCP ServerAPI
  - Access to Mailchimp's Marketing API for comprehensive email marketing data retrieval.
  - Command: `npx -y @agentx-ai/mailchimp-mcp-server`
  - [View Details](https://www.agentx.so/mcp/mailchimp)

- **NASA**
  - MCP Server
  - A Model Context Protocol (MCP) server for NASA APIs, providing a standardized interface for AI models to interact with NASA's vast array of data sources.
  - Command: `npx -y @programcomputer/nasa-mcp-server@latest ...`
  - [View Details](https://www.agentx.so/mcp/nasa)

- **MongoDB**
  - MCP Server
  - Use your MongoDB database to store and retrieve data.
  - Command: `npx -y mcp-mongo-server ...`
  - [View Details](https://www.agentx.so/mcp/mongodb)
