Skip to main content
Glama

grpcmcp

提供された記述子ファイルに基づいて、またはリフレクションを使用して grpc バックエンドにプロキシするシンプルな MCP サーバー。

クイックスタート

  1. バイナリをインストールします: go install .またはgo install github.com/adiom-data/grpcmcp go bin ディレクトリが PATH 内にあることを確認します。

  2. ターミナルで、サンプルのgrpc server go run example/main.goを実行します。これにより、サーバーリフレクションが有効になった状態で、ポート8090でgrpc healthサービスが起動します。これはgrpcmcpが接続するデフォルトポートで実行されることに注意してください。

  3. SSEトランスポート別のターミナルで、 grpcmcp --hostport=localhost:3000 --reflect``hostport実行します。hostportを指定するとSSEが使用されます。SSEエンドポイントはhttp://localhost:3000/sseで提供されます。

  4. STDINトランスポートMCP構成を設定します。例:

"grpcmcp": { "command": "grpcmcp", "args": ["--reflect"] }

Related MCP server: mcprouter

オプション/機能

オプションの完全なリストについては、 grpcmcp --help

  • hostport文字列 - 設定されている場合、SSE が使用され、これがサーバーのホスト:ポートとして機能します。

  • descriptors文字列 - gRPC リフレクションを使用する代わりに、 buf build -o protos.pbまたはprotoc --descriptor_set_out=protos.pbから生成された protobuf 定義のファイルの場所を指定します。

  • reflect - 設定されている場合、記述子ファイルの代わりにリフレクションを使用して gRPC エンドポイントを取得します。

  • url文字列 - バックエンド サーバーの URL を指定します。

  • services文字列 - フィルタリングする完全修飾 gRPC サービス名のカンマ区切りリスト。

  • bearer文字列 - Authorization: Bearerヘッダーに添付するトークン。

  • bearer-env文字列 - Authorization: Bearerヘッダーに添付するトークンの環境変数。bearer bearerオーバーライドします。

  • header列 (繰り返し可能) - Key: Value形式で追加するヘッダー。

ヘルプ

Discordにご参加ください: https://discord.gg/hDjx3DehwG

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

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/adiom-data/grpcmcp'

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