PydanticRPC is a Python library for rapidly exposing Pydantic models as gRPC, ConnectRPC, and MCP services without protobuf files.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add pydanticrpc -- python -m pydantic_rpc.core~/.codex/config.toml
[mcp_servers.pydanticrpc]
command = "python"
args = ["-m", "pydantic_rpc.core"]
# codex mcp add pydanticrpc -- python -m pydantic_rpc.core~/.cursor/mcp.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}.vscode/mcp.json
{
"servers": {
"pydanticrpc": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"pydanticrpc": {
"command": "python",
"args": [
"-m",
"pydantic_rpc.core"
]
}
}
}