Grpc Invoke Mcp

io.github.grulex由 GitHub 账号 grulex 发布v0.1.5更新于 Oct 24, 2026

MCP server for describing and invoking gRPC methods

概览

AI 生成的概览

本地 MCP 服务器,让 AI 助手通过反射或本地 .proto 文件描述 gRPC 服务并调用一元 gRPC 方法。

可以做什么
查看 gRPC 服务、方法和消息类型:列出服务、在调用前查看方法签名与请求结构,可通过服务器反射或本地 .proto 文件及导入路径完成。使用 JSON 请求体调用一元 gRPC 方法,可发送自定义元数据头,并通过 TLS 或明文 HTTP/2 连接本地、预发布或生产安全端点。
适用场景
适合需要让助手探索 gRPC API、了解请求与响应结构,或在集成与调试过程中直接发起针对性测试调用、而不必编写一次性脚本的场景。
运行要求
通过 npx 以 stdio 在本地运行,需要 PATH 中有 Node.js 和 npx。npm 包在安装时会下载对应平台的二进制文件,需要能访问 GitHub Releases。支持 macOS(Apple Silicon 与 Intel)、Linux x64/ARM64 和 Windows x64/ARM64。目标 gRPC 服务器需可访问,并开启反射或提供本地 .proto 文件。
安装前请注意
助手可以对配置的端点发起真实 gRPC 调用,包括生产安全端点,执行前应确认调用内容。自定义元数据头可能携带认证凭据,并会发送给目标服务器。安装过程中会从 GitHub Releases 下载原生二进制文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Grpc Invoke Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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:

bash
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

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

Optional CLI setup:

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

Codex

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

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

Optional CLI setup:

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

Cursor

Project config file: .cursor/mcp.json

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

来源:README.md,提交 f7fced0

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.5最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分