gRPC Services as Tools
Internal services are often already described by a .proto file: every method, request message, and reply message is spelled out in a machine-readable contract. Wrapping each method in a hand-written MCP tool re-states that contract a second time, in a second place, where it can drift.
The Problem
An agent can only call a gRPC method through a tool, and a tool needs a name, a description, and a JSON input schema. Writing a dedicated MCP server to translate those into protobuf requests means another process to run, and a tool list that has to be kept in step with every change to the service definition.
How Zilla Solves It
The mcp-grpc · client binding reads the service definition from a catalog and generates one MCP tool for each unary gRPC method. The tool inputSchema and outputSchema come from the request and reply messages, so tools/list always reflects the contract in the .proto. A tools/call converts the JSON arguments to the protobuf request message, makes the gRPC call, and converts the protobuf reply back to JSON.
It slots into the same mcp · proxy routing layer as every other upstream, so from the agent's perspective a toolkit backed by a gRPC service is indistinguishable from one backed by a real MCP server.
catalogs:
inventory_catalog:
type: filesystem
options:
subjects:
inventory:
path: protos/inventory.proto
bindings:
south_mcp_grpc_inventory:
type: mcp-grpc
kind: client
options:
server: http://inventory:4004
catalog:
inventory_catalog:
subject: inventory
version: latest
routes:
- with:
method: acme.inventory.v1.InventoryService/*The routes select which methods are exposed, here every method of the service. Each selected unary method becomes a tool named after its fully qualified method, so acme.inventory.v1.InventoryService/GetItem is acme_inventory_v1_inventory_service_get_item. Streaming methods are never exposed.
Architecture
The mcp-grpc binding generates its own internal grpc client for the same catalog schema, and sends it to the engine client exit, which defaults to sys:http_client. To send it somewhere else, such as an http client binding pinned to h2 in front of a tcp or tls client, set the zilla.binding.mcp.grpc.client.exit property to that binding's name.
Configuration
Name and describe the tools you expose, and pin each one to a method, with options.tools and routes:
south_mcp_grpc_inventory:
type: mcp-grpc
kind: client
options:
server: http://inventory:4004
catalog:
inventory_catalog:
subject: inventory
version: latest
tools:
get_item:
title: Get inventory item
description: Look up a single inventory item by SKU.
annotations:
readOnlyHint: true
list_items:
title: List inventory items
description: List inventory items, optionally filtered by category.
annotations:
readOnlyHint: true
routes:
- when:
- tool: get_item
with:
method: acme.inventory.v1.InventoryService/GetItem
- when:
- tool: list_items
with:
method: acme.inventory.v1.InventoryService/ListItemsA route with a when.tool condition renames the method it selects, and a route without one selects methods in bulk, either by a method glob such as acme.inventory.v1.InventoryService/* or by a protobuf method option declared in the .proto. Methods that no route selects are not exposed.
Route the toolkit from mcp · proxy the same way as any other upstream, by toolkit name, with a guarded route to require a role:
north_mcp_proxy:
type: mcp
kind: proxy
routes:
- exit: south_mcp_grpc_inventory
when:
- toolkit: inventory
guarded:
authn_jwt:
- inventory:toolsThe agent then lists and calls inventory__get_item and inventory__list_items alongside every other toolkit.
Results and Errors
By default the converted reply is returned as JSON text in the tool-call content. Setting tools.<name>.summary switches that tool to returning the converted reply as structuredContent, with the literal summary as the text content.
A gRPC status other than OK that arrives before any reply data is returned as a tool result with isError set and the status name and message as the text, such as NOT_FOUND: unknown table, so the agent can read the failure and recover.
Forwarding Credentials
options.authorization forwards the session's guard credentials to the service as gRPC metadata, so the service sees the caller's own identity rather than an anonymous gateway:
options:
authorization:
authn_jwt:
credentials:
headers:
authorization: Bearer {credentials}
x-user-identity: "{identity}"Editions
mcp-grpc · client ships with the open-source Zilla runtime under the Aklivity Community License. Guarding a toolkit built on it follows the same rules as any other: the jwt guard for inbound auth, and the Zilla Plus oauth guard if the call also needs an outbound credential — see OAuth Guard.
Try It
Try the example
The mcp.proxy example adds an inventory toolkit backed by a small gRPC service through mcp-grpc · client, gated by an inventory:tools scope, alongside its other upstreams. Run docker compose up and call inventory__get_item to see a tools/call become a gRPC GetItem.

