Skip to content
MCP server

Triplex schema contracts

Infer and validate schema contracts on local CSV, TSV and JSON Lines files

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
Version
0.48.1
Listing updated
2 days ago

About Triplex schema contracts

Triplex schema contracts is an open-source MCP server for legal and government. It runs locally on your machine and is started by your AI client.

Triplex's server is a small Rust binary that a coding agent launches as a local process over stdio. It reads files by path and does not use the network, so tabular data stays on the machine. The README says nothing in it reads bytes over the wire.

Two read-only tools are exposed. One infers a schema contract from a file, optionally from a sample of rows, and the other checks a file against an existing .triplex.yaml contract. The anonymize function from the wider Triplex project is not exposed yet. Install it with cargo install triplex-mcp; there are no flags or config files.

Install

Run in a terminal

claude mcp add triplex-mcp -- npx -y triplex-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "triplex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "triplex-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "triplex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "triplex-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "triplex-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "triplex-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

schema_infer
Infers a schema contract from a local file
schema_validate
Checks a local file against a .triplex.yaml contract

What it does

Schema inference
Builds a schema contract from a local data file, optionally sampling rows.
Contract validation
Checks a file against a .triplex.yaml contract.
Local only
Uses stdio and no network access.
Read-only tools
Both tools only read the file path they are given.
Simple install
Installs from crates.io with no flags or config file.

Good for

  • Having an agent draft a schema for a new CSV export
  • Validating incoming data files against an agreed contract
  • Catching column drift in JSON Lines logs before loading
  • Checking sensitive files without sending them anywhere

Pricing

Open source

Installed from crates.io; licence and pricing not published

Prices change. Check triplexanalytics.io before you buy.

Triplex schema contracts FAQ

Does it send data over the network?

No. The README says it uses stdio only, with no network and no server.

Can it anonymize data?

Not yet; anonymize is not exposed through this server.

Which file formats work?

CSV, TSV and JSON Lines files.

How do I install it?

Run `cargo install triplex-mcp`, then point an MCP client's stdio transport at the binary.

Is Triplex schema contracts free?

Yes. Triplex schema contracts is open source, so you can use and self-host it for free.

How do I add Triplex schema contracts to Claude Code?

Run this command in your terminal: claude mcp add triplex-mcp -- npx -y triplex-mcp

What are the best alternatives to Triplex schema contracts?

The closest alternatives to Triplex schema contracts are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Triplex schema contracts

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data