gRPC Invoke MCP

gRPC Invoke MCP

An MCP server for calling gRPC methods from AI agents, enabling them to inspect gRPC APIs and invoke unary RPCs using server reflection or local .proto files.

Category
访问服务器

README

gRPC Invoke MCP

npm version npm downloads license

grpc-invoke-mcp is an MCP server for calling gRPC methods from AI agents like Claude Code, Codex, Cursor, and other MCP-compatible tools.

It gives agents a simple way to inspect gRPC APIs and invoke unary RPCs using either server reflection or local .proto files. This is useful when you want an agent to explore services, understand request and response schemas, make real gRPC calls, and test gRPC integrations during agent-driven development without writing one-off scripts.

Features

  • Call gRPC methods from MCP-compatible agents
  • Describe gRPC services, methods, and message types
  • Use server reflection or local .proto files
  • Connect over TLS or plaintext HTTP/2
  • Send custom metadata headers
  • Pass JSON request bodies for unary RPCs
  • Works with Claude Code, Codex, Cursor, and other MCP clients

Installation

Run the server with npx:

npx -y @grulex/grpc-invoke-mcp@latest

The package downloads a platform-specific grpc-invoke-mcp binary during installation.

Agent Setup

Claude Code

Project config file: .mcp.json

{
  "mcpServers": {
    "grpc-invoke": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@grulex/grpc-invoke-mcp@latest"]
    }
  }
}

Optional CLI setup:

claude mcp add --transport stdio grpc-invoke -- npx -y @grulex/grpc-invoke-mcp@latest

Codex

User config file: ~/.codex/config.toml

[mcp_servers.grpc-invoke]
command = "npx"
args = ["-y", "@grulex/grpc-invoke-mcp@latest"]

Optional CLI setup:

codex mcp add grpc-invoke -- npx -y @grulex/grpc-invoke-mcp@latest

Cursor

Project config file: .cursor/mcp.json

{
  "mcpServers": {
    "grpc-invoke": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@grulex/grpc-invoke-mcp@latest"]
    }
  }
}

You can also install it globally in ~/.cursor/mcp.json.

Available Tools

grpc_describe

Use this tool to inspect services, methods, and message types.

Common use cases:

  • list services exposed by a gRPC server
  • inspect a method signature before calling it
  • explore message schemas through reflection
  • describe APIs from local .proto files

grpc_call

Use this tool to invoke unary gRPC methods with a JSON request body.

Common use cases:

  • call internal microservices from your agent
  • test request and response payloads
  • send auth headers or other gRPC metadata
  • connect to local, staging, or production-safe endpoints

Example Prompts

  • "Describe the services exposed by localhost:50051 using reflection."
  • "Show the request schema for helloworld.Greeter/SayHello."
  • "Call helloworld.Greeter/SayHello on localhost:50051 with { \"name\": \"World\" }."
  • "Invoke package.Service/Method using proto_files and import_paths instead of reflection."

How It Works

This package exposes an MCP server over stdio. Your agent starts it locally and discovers tools such as:

  • grpc_describe for schema inspection
  • grpc_call for unary RPC invocation

Under the hood, the npm package launches a native grpc-invoke-mcp binary bundled at install time. The binary supports:

  • gRPC server reflection
  • local .proto definitions
  • plaintext or TLS connections
  • request metadata headers

Supported Platforms

The installer currently targets:

  • macOS Apple Silicon
  • macOS Intel
  • Linux x64
  • Linux ARM64
  • Windows x64
  • Windows ARM64

Troubleshooting

npx cannot start the server

Make sure Node.js and npx are installed and available in your PATH.

The binary download fails

The npm package downloads a release artifact during installation, so your machine needs network access to GitHub Releases.

Reflection does not work

If the target server does not expose gRPC reflection, use local .proto files and import_paths instead.

TLS or connection errors

Check the target host, port, TLS settings, and whether the server expects plaintext or TLS.

The agent does not use the MCP server

Confirm the config file is in the right location for your client, restart the client if needed, and verify the server appears in the MCP list or tools panel.

Why Use grpc-invoke-mcp

If you work with gRPC services, this MCP server lets AI agents inspect and call those services directly. Instead of translating API details by hand, you can let Claude Code, Codex, Cursor, or other MCP-compatible agents explore the contract and execute safe, targeted requests for debugging, integration work, API discovery, and gRPC testing in agent-driven development workflows.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选