ZKProof MCP server

Enables privacy-preserving computations with zero-knowledge proofs for verifying claims like age requirements without revealing sensitive personal data
Back to servers
Provider
Colygon
Release date
Mar 29, 2025
Language
TypeScript
Stats
9 stars

The zkMCP server provides a Model Context Protocol implementation for zero-knowledge proofs using circom. It enables you to build circuits, perform trusted setup, generate and verify zero-knowledge proofs without revealing sensitive information.

Installation Requirements

Before installing the server, ensure you have the following prerequisites:

  • Node.js (v14 or later)
  • circom (v2.0.0 or later)
  • snarkjs

Installing the Server

Follow these steps to set up the zkMCP server:

  1. Clone the repository:

    git clone https://github.com/yourusername/zkMCP.git
    cd zkMCP/server
    
  2. Install dependencies:

    npm install
    
  3. Build the server:

    npm run build
    

Server Configuration

Add the server to your MCP settings configuration file:

{
  "mcpServers": {
    "zkproof": {
      "command": "node",
      "args": ["/path/to/zkMCP/server/build/index.js"],
      "env": {
        "ZKINTRO_DIR": "/path/to/circom/projects"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Make sure to replace /path/to/zkMCP/server/build/index.js with the actual path to the built server and /path/to/circom/projects with the directory where your circom projects are located.

Using the Server

The zkMCP server provides four main functionalities:

Building Circuits

You can build circuits from Circom files. This is the first step in the zero-knowledge proof workflow.

Performing Trusted Setup

After building a circuit, you need to perform a trusted setup, which is a crucial cryptographic ceremony required for generating and verifying proofs.

Generating Proofs

Once the trusted setup is complete, you can generate zero-knowledge proofs for your circuits with appropriate inputs.

Verifying Proofs

Finally, you can verify proofs to ensure they are valid without revealing the underlying data.

Example Use Case: Age Verification

One included example demonstrates age verification without revealing birth date:

Age Verification Process

The age verification example shows how to:

  1. Create a circuit that accepts a birth date and verification date
  2. Prove someone is above a certain age threshold
  3. Verify this fact without revealing the person's actual birth date

This demonstrates the practical privacy-preserving capabilities of zero-knowledge proofs in a real-world scenario.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later