Skip to main content
Glama

gRPC MCP Server

by Yuki4-dev

📄 Available languages:

grpc-mcp

grpc-mcp is an MCP server built with Node.js/TypeScript. It enables easy gRPC requests and Protocol Buffer file information retrieval.

Features

  • Retrieve service/method info from Protocol Buffer files
  • Send requests to gRPC servers (with SSL, timeout, headers, etc.)
  • Get response time statistics
  • Operate via natural language from MCP clients or VSCode extensions

Limitations

  • This tool does NOT support gRPC streaming (server streaming, client streaming, or bidirectional streaming). Only single-request single-response (unary) RPCs are supported.

AI instruction prompts

This repository includes prompt templates to instruct AI agents using natural language. The templates and usage examples help automate gRPC requests and Protocol Buffer handling. See the prompt files below:

Usage

MCP Client Example

use npx.

{ "servers": { "grpc-mcp-sample": { "type": "stdio", "command": "npx", "args": ["-y", "grpc-mcp"] } } }

or use install module.

{ "servers": { "grpc-mcp-sample": { "type": "stdio", "command": "node", "args": ["C:~\\node_modules\\grpc-mcp\\dist\\index.js"] } } }

Start Server

node C:~\node_modules\grpc-mcp\dist\index.js

Dependencies

  • @grpc/grpc-js
  • @grpc/proto-loader
  • fastmcp
  • zod

MCP Tool Basic Operations

1. Load Proto Files

Specify the directory containing proto files to get service/method info.

{ "tool": "loadProto", "parameters": { "dir": "C:\\Users\\proto" } }

2. Get Method Information

Specify service/method to get request/response structure.

{ "tool": "getMethodInformation", "parameters": { "path": "C:\\Users\\proto\\your.proto", "service": "YourService", "method": "YourMethod" } }

3. Send gRPC Request

Specify proto, service, method, request body, SSL, timeout, etc.

{ "tool": "sendRequest", "parameters": { "path": "C:\\Users\\proto\\your.proto", "address": "localhost:6565", "service": "YourService", "method": "YourMethod", "body": "{\"key\": \"value\"}", "config": { "SSL": false, // true: enabled, false: disabled "deadLine": 1000 // milliseconds } } }
Response Example
{ "analyze": { "time": 123 // response time (ms) }, "response": { "ok": true, "body": "{...}" // response body (JSON string) // on failure: // "ok": false, // "error": { "code": 14, "details": "UNAVAILABLE" } } }

License

MIT

MCP Tool Usage Examples

Natural Language Usage Examples

  • Send gRPC request
    • e.g. "Set id:123 in the request and call GetUser method of User service"
  • Multiple requests/statistics
    • e.g. "Call GetUser of Hoge service 10 times and show average/max/min response time"
  • Summarize/extract response
    • e.g. "Summarize user list in GetUser response"
    • e.g. "Show only error details if failed"
  • Get method info
    • e.g. "Show request/response structure for Sample method of Sample service in sample.proto"

For Developers

Setup & Build

npm install npm run build

Lint & Format

npm run lint npm run prettier:write

Example Implementation

// Import loader and client from grpc-mcp library import { loader, client } from "grpc-mcp"; async function main() { // Load proto files from the proto directory const protoList = await loader.loadAsync("./proto/"); const proto = protoList[0]; const service = proto.services[0]; const method = service.methods[0]; // Get method information and print it const info = await loader.getMethodAsync(proto.path, service.name, method); console.log(info); // Send a gRPC request and print the response const response = await client.requestAsync({ path: proto.path, address: "localhost:6565", service: service.name, method: method, body: JSON.stringify({ key: "value" }), config: { SSL: false }, }); console.log(response); } main();
Deploy Server
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Enables easy gRPC requests and Protocol Buffer file information retrieval through natural language commands. Supports unary RPCs with SSL, timeout configuration, and response time statistics.

  1. Features
    1. Limitations
      1. AI instruction prompts
        1. Usage
          1. MCP Client Example
          2. Start Server
        2. Dependencies
          1. MCP Tool Basic Operations
            1. 1. Load Proto Files
            2. 2. Get Method Information
            3. 3. Send gRPC Request
          2. License
            1. MCP Tool Usage Examples
              1. Natural Language Usage Examples
            2. For Developers
              1. Setup & Build
              2. Lint & Format
              3. Example Implementation

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Enables managing Google Cloud Platform resources through natural language commands in Claude Desktop, supporting comprehensive operations across compute, storage, databases, networking, monitoring, and IAM without manual credential setup.
              Last updated -
              56
              21
              • Apple
            • -
              security
              A
              license
              -
              quality
              A server implementation that exposes grep functionality through the Model Context Protocol, allowing MCP-compatible clients to search for patterns in files using regular expressions.
              Last updated -
              14
              GPL 3.0
            • -
              security
              A
              license
              -
              quality
              MCP server that will proxy to your gRPC backends via reflection or descriptors file.
              Last updated -
              22
              Apache 2.0
            • -
              security
              F
              license
              -
              quality
              An MCP server that provides natural language interaction with Google's Policy Troubleshooter API, allowing users to troubleshoot access denied errors and analyze IAM policies.
              Last updated -

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yuki4-dev/grpc-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server