AgentRPC
Visit ProjectConnect to any function, any language, across network boundaries using AgentRPC.
Visit ProjectCategory
Tags
What is AgentRPC?
AgentRPC is a universal RPC (Remote Procedure Call) layer that enables seamless connectivity to any function across different programming languages and network boundaries. It's ideal for AI agents that need to interact with services deployed in private VPCs, Kubernetes clusters, or multiple cloud environments. AgentRPC wraps functions in a universal RPC interface, providing access through open standards like Model Context Protocol (MCP) and OpenAI-compatible tool definitions.
How to use AgentRPC?
- Registration: Use the provided SDK to register functions and APIs in your preferred language (TypeScript, Go, Python, etc.).
- Management: The AgentRPC platform (api.agentrpc.com) registers the function and monitors its health.
- Access: Utilize OpenAPI SDK compatible tool definitions and a hosted MCP server to connect to your functions.
Quick Start
- Follow the quick start guide on the official documentation.
- Explore examples in the examples directory.
- Launch the MCP server using the TypeScript SDK:
AGENTRPC_API_SECRET=YOUR_API_SECRET npx agentrpc mcp
Integration Examples
- Claude Desktop: Add AgentRPC to your
claude_desktop_config.json
for MCP integration. - Cursor: Configure MCP servers in your
~/.cursor/mcp.json
file.
Key Features
Feature | Description |
---|---|
Multi-language Support | Connect to tools in TypeScript, Go, Python, and .NET |
Private Network Support | Register functions in private VPCs with no open ports required |
Long-running Functions | Supports long polling for function calls beyond HTTP timeout limits |
Full Observability | Comprehensive tracing, metrics, and events for visibility |
Automatic Failover | Health tracking with automatic failover and retries |
Framework Compatibility | Works with MCP and OpenAI SDK compatible agents |
Use Cases
- AI Agent Connectivity: Enable AI agents to interact with private functions across different networks and languages.
- Cross-Platform Integration: Facilitate communication between services in private VPCs, Kubernetes clusters, or multi-cloud environments.
- Tool and API Management: Simplify the management of remote functions with automatic health monitoring and failover.
FAQ
- What languages are supported by AgentRPC?
TypeScript, Go, Python, and .NET (coming soon).
- Can I use AgentRPC with private network services?
Yes, it supports registration of functions in private VPCs without requiring open ports.
- How does AgentRPC ensure reliability?
It includes automatic failover, retries, and comprehensive observability for health monitoring.
- Is AgentRPC compatible with OpenAI or other SDKs?
Yes, it works with OpenAI-compatible tool definitions and MCP SDKs.
AgentRPC
Universal RPC layer for AI agents across network boundaries and languages
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.)
How It Works
- Registration: Use our SDK to register functions and APIs in any language
- Management: The AgentRPC platform (api.agentrpc.com) registers the function and monitors its health
- 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 example on our docs site.
Examples
Explore working examples in the 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": "" } } } } ``` [More Info](https://modelcontextprotocol.io/quickstart/user) ### Cursor Integration Add to your `~/.cursor/mcp.json`: ```json { "mcpServers": { "agentrpc": { "command": "npx", "args": ["-y", "agentrpc", "mcp"], "env": { "AGENTRPC_API_SECRET": "" } } } } ``` [More Info](https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers) ## 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.