Gnt logo

Gnt

Git-native MCP policy layer that checks agent actions against rules approved through merged pull requests.

Install Gnt

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.gntai.dev

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The gnt MCP server checks agent actions against approved rules stored in a connected GitHub repository. Agents call tools such as check_action, search_rules, and get_rule to receive policy verdicts, cited rules, and provenance. Uncovered actions, retrieval failures, and incomplete checks return needs_human rather than an automatic approval. Reach for it when agent actions need reviewable, Git-based policy controls.

Use cases

  • Check refunds before an agent executes them
  • Require approval for destructive or customer-facing actions
  • Search approved policies by meaning or tag
  • Trace an agent decision to its rule and approving pull request

Key features

  • Fail-closed allow, block, or human-review verdicts
  • GitHub pull-request approval workflow
  • Semantic rule search with optional tag filters
  • Rule provenance and cited decision context
  • Compiled skill-pack listing and retrieval
  • Local rule frontmatter linting

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 47d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars30Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Gnt works

What the gnt MCP server does

The gnt MCP server gives agents access to a policy layer whose rules are maintained as files in a connected GitHub repository. Teams propose or update rules through pull requests, and merging a pull request approves the rule. Each rule uses Markdown with YAML frontmatter containing details such as its title, status, owner, citations, approval information, and pull request reference.

Agents can submit a description of a proposed action before execution. The system returns one of three verdicts: allowed, blocked, or needs_human. A response can include a reason, the rules cited for the decision, and the number of rules retrieved. The fail-closed needs_human result applies when no approved rule covers the action, retrieval fails, or the check cannot complete.

How it works

The gnt MCP server exposes one MCP endpoint with five tools. Rules are indexed in gnt's store, and MCP calls read from that store rather than cloning the GitHub repository for every request. Rule provenance links decisions to the approved rule file and the pull request that introduced it.

The normal workflow starts with the CLI. After authentication and repository connection, gnt prebrain can scan sources, extract candidate rules, and open pull requests. Teams can also initialize a local rules/ directory, propose rules for review, inspect pending reviews, and download the latest compiled skill pack. Merging the pull request is the approval step; there is no separate publishing action.

Setup and configuration

Install the CLI with npm or the provided shell installer. Node.js version 22.13 or newer is required. A basic setup uses these commands:

Terminal
npm install -g @gnt-ai/cli
gnt login
gnt connect github
gnt prebrain

The repository must contain rules before gnt prebrain can scan useful material; gnt init creates example files when needed. The CLI stores credentials and local configuration under ~/.gnt by default. GNT_API_URL changes the API endpoint, GNT_WEB_URL changes the web address used during browser login, and GNT_CONFIG_DIR changes the local configuration directory.

A Docker demo is also available through ./demo.sh. It builds a local Compose stack, seeds a refund rule, and calls check_action. Without an Anthropic key, the demo exercises the fail-closed path and returns needs_human.

Tools and capabilities

The gnt MCP server provides these tools:

  • check_action: Evaluate a described action against approved rules and return a verdict, reason, and cited rules.
  • search_rules: Perform semantic search across approved organizational rules, with optional tag filtering.
  • get_rule: Retrieve one approved rule and its provenance.
  • list_skill_packs: List compiled skill-pack versions for an organization, newest first.
  • get_skill_pack: Retrieve a compiled skill pack's manifest and file list.

The CLI also supports rule linting, status checks, gap discovery, rule review, and skill-pack synchronization. Local linting validates rule frontmatter before review, and the repository includes a GitHub Action that can run the same check in a rules repository's pull requests.

Limitations and notes

The hosted setup uses gnt's API and database, while rules also remain in the connected GitHub repository. Cloud extraction sends source text directly to Anthropic, or to Vercel AI Gateway when configured; it does not send that raw source text to gnt's own servers. Local extraction can use Ollama through gnt prebrain --mode local, while extracted rule candidates are still sent to gnt's API to open the pull request.

Self-hosting has an authentication limitation: gnt login depends on a browser page from the hosted web app, and the repository does not provide a CLI-only or manual key setup flow. A self-hosted deployment therefore needs a frontend for that login route. The self-hosted API only sends error data to Sentry when SENTRY_DSN is explicitly configured.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gnt

gnt is an MCP server that connects AI agents to Git-native organizational rules stored through a connected GitHub repository. Its main tools check actions, search approved rules, retrieve rule provenance, and list or fetch compiled skill packs, returning allowed, blocked, or needs_human policy results.

Install the CLI with Node.js 22.13 or newer using npm or the provided shell installer. Run `npm install -g @gnt-ai/cli`, then use `gnt login`, `gnt connect github`, and `gnt prebrain` to configure the repository and create candidate rules.

gnt approves a policy rule when its pull request is merged. Rules are committed as Markdown files with YAML frontmatter in the connected repository, so the approving pull request and rule file provide the decision's provenance.

gnt returns `needs_human` when no approved rule covers the action. The same fail-closed verdict applies if retrieval fails or the check cannot complete, so the system does not guess an approval.

You can try the local Docker demo with `./demo.sh`, which builds an isolated Compose stack and calls `check_action`. Full self-hosting has a login limitation because the browser login page is part of the hosted web app and is not included in the repository.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGnt AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gnt?style=directory)](https://allmcps.com/mcp/gnt)
HTML Embed
<a href="https://allmcps.com/mcp/gnt"><img src="https://allmcps.com/api/badge/gnt?style=directory" alt="Gnt on AllMCPs" /></a>