Skip to main content
Glama

Proto Server

by umuterturk

Quick Start Guide

Get up and running with MCP Proto Server in under 5 minutes.

Prerequisites

  • Python 3.11 or later

  • pip package manager

Setup Steps

Step 1: Clone the Repository

git clone https://github.com/umuterturk/mcp-proto.git cd mcp-proto

Step 2: Install Dependencies

⚠️ Required: You must manually install Python dependencies.

pip install -r requirements.txt

This installs:

  • mcp - Model Context Protocol SDK

  • protobuf - Proto parsing support

  • rapidfuzz - Fast fuzzy search

  • watchdog - File watching (optional)

Step 3: Configure Cursor

Add to your Cursor MCP settings file:

macOS: ~/Library/Application Support/Cursor/mcp.json
Windows: %APPDATA%\Cursor\mcp.json

{ "mcpServers": { "proto-server": { "command": "python", "args": [ "/absolute/path/to/mcp-proto/mcp_proto_server.py", "--root", "/absolute/path/to/your/proto/files" ] } } }

Important:

  • Use absolute paths (not relative)

  • Replace /absolute/path/to/mcp-proto/ with your clone location

  • Replace /absolute/path/to/your/proto/files with your proto directory

  • Or use the included examples/ folder to test

Example for macOS:

{ "mcpServers": { "proto-server": { "command": "python", "args": [ "/Users/yourname/mcp-proto/mcp_proto_server.py", "--root", "/Users/yourname/mcp-proto/examples" ] } } }

Step 4: Restart Cursor

Close and reopen Cursor. The server will automatically start!

Note: Cursor automatically starts/stops the server. You don't need to run it manually.


Usage

Once configured, ask Cursor questions about your proto files:

  • "What services are available?"

  • "Show me the User message structure"

  • "How do I authenticate?"

The AI will use three MCP tools to explore your protos:

  • search_proto - Fuzzy search across all definitions

  • get_service_definition - Get complete service with all RPCs

  • get_message_definition - Get message with all fields


Troubleshooting

"Module not found" error:

  • Run: pip install -r requirements.txt

  • Check Python version: python --version (need 3.11+)

"No proto files found":

  • Verify the --root path in your config points to a directory with .proto files

  • Test: find /path/to/protos -name "*.proto"

Server not appearing in Cursor:

  • Ensure absolute paths are used in mcp.json

  • Check Cursor's MCP logs for errors

  • Restart Cursor completely


Optional: Testing Before Configuration

Want to verify everything works before configuring Cursor?

Step 3: Test the Installation (Optional)

Run the test suite:

python test_server.py

Expected output:

✓ Indexed 3 proto files ✓ Indexing: PASSED ✓ Search: PASSED ✓ Get Service: PASSED ✓ Get Message: PASSED ✓ Fuzzy Matching: PASSED

Or test the server manually:

# Test with included examples python mcp_proto_server.py --root examples/ # Test with your own protos python mcp_proto_server.py --root /path/to/your/protos

Press Ctrl+C to stop the server.


What's Next?

  • USAGE.md - Detailed examples and JSON responses

  • ARCHITECTURE.md - How the system works

  • RECURSIVE_RESOLUTION.md - Efficiency features

Ready to explore your proto files with AI!

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables AI assistants to explore and understand Protocol Buffer (.proto) files through fuzzy search, service definitions, and message structure analysis. Integrates with Cursor IDE to provide natural language queries about protobuf schemas and API definitions.

  1. Prerequisites
    1. Setup Steps
      1. Step 1: Clone the Repository
      2. Step 2: Install Dependencies
      3. Step 3: Configure Cursor
      4. Step 4: Restart Cursor
    2. Usage
      1. Troubleshooting
        1. Optional: Testing Before Configuration
          1. Step 3: Test the Installation (Optional)
        2. What's Next?

          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/umuterturk/mcp-proto'

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