# ContractGate (npm · @contractgate/mcp-server)

Infer, dry-run, deploy, and inspect ContractGate semantic data contracts.

- Trust score: 76/100 (medium)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-09-25

## Components

- npm · `@contractgate/mcp-server`: 76/100 (this document), [markdown](https://verifymcp.io/servers/nightmoose-contractgate/contractgate-mcp-server.md), [page](https://verifymcp.io/servers/nightmoose-contractgate/contractgate-mcp-server)

## Channel facts

- Registry: `npm`
- Package: `@contractgate/mcp-server`
- Version: `0.1.2`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-09-25.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - 0 of 3 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 48/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 7 days ago).
  - Publishes a security disclosure policy (SECURITY.md).
- **Schema Quality & AI Usability**: 84/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 443 tokens (~88/item across 5 items; 5 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 98/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 93% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - All 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation.
  - An AI judge read all 5 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a current MCP spec version (2026-07-28).

## Install

### How do I install the ContractGate MCP server?

ContractGate runs locally as an npm package, launched with npx -y @contractgate/mcp-server. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add nightmoose-contractgate -- npx -y @contractgate/mcp-server
```

### Cursor

```json
{
  "mcpServers": {
    "nightmoose-contractgate": {
      "command": "npx",
      "args": [
        "-y",
        "@contractgate/mcp-server"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "nightmoose-contractgate": {
      "command": "npx",
      "args": [
        "-y",
        "@contractgate/mcp-server"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add nightmoose-contractgate -- npx -y @contractgate/mcp-server
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nightmoose-contractgate": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@contractgate/mcp-server"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add nightmoose-contractgate --command npx --arg -y --arg @contractgate/mcp-server
```

### Hermes

```yaml
mcp_servers:
  nightmoose-contractgate:
    command: "npx"
    args: ["-y", "@contractgate/mcp-server"]
```

### Netclaw

```json
{
  "McpServers": {
    "nightmoose-contractgate": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@contractgate/mcp-server"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add nightmoose-contractgate -t stdio -c npx -a -y @contractgate/mcp-server
```

### Other

```json
{
  "mcpServers": {
    "nightmoose-contractgate": {
      "command": "npx",
      "args": [
        "-y",
        "@contractgate/mcp-server"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-09-25 (score 76, +3)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-09-17 (score 73)

First indexed and scored.

## MCP tools (5)

### `infer_contract` (~90 tokens)

Infer a contract from sample events

Generate draft ContractGate YAML from real JSON sample events via POST /contracts/infer. Does not persist. Review and write the YAML to contracts/<name>.yaml before deploying.

Input parameters:

- `description` (string): Optional contract description
- `name` (string, required): Contract name, snake_case, e.g. user_events
- `samples` (array, required): 1–20 real event objects. Do not invent them.

### `validate_events` (~152 tokens)

Validate events against a contract

Validate events. Pass contract_id to hit POST /v1/ingest/{id} (dry_run defaults true — no audit, quarantine, or usage). Pass yaml_content to hit POST /playground/validate per event (never persists). Exactly one of contract_id or yaml_content. 207/422 responses are returned as data so you can apply each violation's suggestion.

Input parameters:

- `contract_id` (string): Deployed contract UUID from deploy_contract
- `dry_run` (boolean): Ingest only. Default true. Set false only after a successful dry run.
- `events` (array, required): Event objects to validate
- `yaml_content` (string): In-flight contract YAML; uses the playground, never persists

### `deploy_contract` (~118 tokens)

Deploy a contract to stable

POST /contracts/deploy — find-or-create by name, insert YAML as stable, deprecate prior stable. 409 if that (name, version) exists: bump version in the YAML. Refused while quarantine is pending. Save the returned contract_id.

Input parameters:

- `deployed_by` (string): Actor recorded on the version row
- `name` (string, required): Contract name matching the YAML name: field
- `source` (string): Logical feed name, e.g. app-backend
- `yaml_content` (string, required): Full contract YAML

### `get_quarantine` (~63 tokens)

List quarantined events

GET /quarantine — rejected events for the caller's org, newest first, with violation details.

Input parameters:

- `contract_id` (string): Restrict to one contract
- `limit` (integer): Default 100, max 500
- `offset` (integer)

### `list_contracts` (~20 tokens)

List contracts

GET /contracts — identities the API key can see.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/nightmoose-contractgate/contractgate-mcp-server#diagnostics

## Score history

- 2026-09-25: 76
- 2026-09-24: 73
- 2026-09-23: 73
- 2026-09-22: 73
- 2026-09-21: 73
- 2026-09-20: 73
- 2026-09-19: 73
- 2026-09-18: 73
- 2026-09-17: 73

## Common questions

### What is the ContractGate MCP server?

ContractGate is an MCP server listed in the public MCP registry as io.github.nightmoose/contractgate. Infer, dry-run, deploy, and inspect ContractGate semantic data contracts. This page covers its npm package (@contractgate/mcp-server).

### Is the ContractGate MCP server safe to use?

ContractGate scores 76 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 25 September 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the ContractGate MCP server expose?

ContractGate exposes 5 tools: infer_contract, validate_events, deploy_contract, get_quarantine, list_contracts. Their descriptions and schemas cost roughly 443 tokens of context every time the server is loaded.

### Is the ContractGate MCP server still maintained?

ContractGate is still listed as active in the MCP registry. We last reached this channel on 25 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the ContractGate MCP server under?

ContractGate declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- npm package: https://www.npmjs.com/package/@contractgate/mcp-server
- Socket report: https://socket.dev/npm/package/@contractgate/mcp-server
- Repository: https://github.com/nightmoose/contractgate
- Website: https://app.datacontractgate.com/mcp-reference.md
- Changelog RSS feed: https://verifymcp.io/servers/nightmoose-contractgate/contractgate-mcp-server.xml
- Changelog JSON feed: https://verifymcp.io/servers/nightmoose-contractgate/contractgate-mcp-server.json
- HTML version of this page: https://verifymcp.io/servers/nightmoose-contractgate/contractgate-mcp-server
