gRPC Transport for MCP
Enables MCP servers and clients to communicate over gRPC using FastMCP, supporting tool calls, text and image content, and progress reporting.
README
gRPC Transport for MCP
[!WARNING] Experimental / Proof of Concept
This package is a proof of concept for experimentation purposes. It is not intended for production use. The official Python package is being developed at GoogleCloudPlatform/mcp-grpc-transport-py — please follow/star that repo to stay updated.
A gRPC transport implementation for the Model Context Protocol (MCP) using FastMCP.
Background
- SEP: gRPC as a native MCP transport — the specification enhancement proposal
- Blog: gRPC as a Native Transport for MCP
Features
- Server: expose a FastMCP server over gRPC
- Client: call a gRPC MCP server and get back native
mcp.typesobjects - Tool calls with text and image content, structured output, and progress reporting
- Proto definitions sourced from GoogleCloudPlatform/mcp-grpc-transport-proto
Installation
uv sync
The proto package (mcp-transport-proto) is fetched directly from GitHub via [tool.uv.sources] — no manual proto compilation needed.
Server
import asyncio
from mcp.server.fastmcp import FastMCP
from grpcmcp import serve_grpc
mcp = FastMCP("My Server")
@mcp.tool()
async def my_tool(x: int) -> str:
"""Does something useful."""
return str(x)
if __name__ == "__main__":
asyncio.run(serve_grpc(mcp)) # default: 0.0.0.0:50051
# asyncio.run(serve_grpc(mcp, port=9090))
Client
import asyncio
from grpcmcp import GRPCClient
async def main():
async with GRPCClient("localhost", 50051) as client:
tools = await client.list_tools()
for tool in tools.tools:
print(f"{tool.name}: {tool.description}")
result = await client.call_tool("my_tool", {"x": 42})
for content in result.content:
if content.type == "text":
print(content.text)
asyncio.run(main())
GRPCClient reference
| Parameter | Type | Description |
|---|---|---|
host |
str |
Server hostname |
port |
int |
Server port |
timeout |
float | None |
Default per-call timeout in seconds |
channel_options |
list[tuple] | None |
Raw gRPC channel options |
| Method | Returns |
|---|---|
list_tools() |
types.ListToolsResult |
call_tool(name, arguments) |
types.CallToolResult |
Running the examples
Start the server:
uv run python example/grpc_example_server.py
In another terminal, run the client:
uv run python example/grpc_example_client.py
Requirements
- Python >= 3.10
- grpcio >= 1.78.0
- protobuf >= 4.25.0
- mcp == 1.25.0
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.