gnt MCP Server

gnt MCP Server

Enables AI agents to query live, human-approved rules before taking actions, ensuring compliance and reducing errors.

Category
访问服务器

README

<div align="center">

gnt.ai

gnt turns what your team knows into rules an AI agent has to check before it acts. Every rule goes live through a real, human-approved pull request, not a dashboard click.

License npm CI

</div>

Most teams find gnt after an agent already did something expensive, or wrong, or just embarrassing, and nobody could say which rule should have caught it. gnt is what you set up before that happens, not after.

A real terminal session of gnt prebrain scanning a repo, opening a PR, and getting merged

The 90-second loop

  1. Someone on your team writes a rule (gnt review, or the web UI): "never refund over $500 without a manager," "always CC legal on contract changes," whatever your org actually does.
  2. gnt opens a real pull request against your own GitHub repo with that rule as a markdown file.
  3. A human reviews and merges it. That merge is the approval. There's no separate "publish" step and no way for a rule to go live without a person merging a PR.
  4. Any MCP-capable agent queries gnt live before acting, and gets back the merged, current rule: cited, versioned, and auditable back to the PR that approved it.

Not RAG. The point isn't better retrieval over a pile of docs. It's structured, validated, cited rules that a human signed off on before an agent can rely on them.

Quickstart: hosted

npm install -g @gnt-ai/cli
gnt login              # opens your browser once, stores an API key locally
gnt connect github      # connect the repo your rules PRs open against
gnt connect slack       # optional, connect a Slack workspace
gnt review              # review in-review rules, propose PRs or reject

Everything after gnt login runs from your terminal. The only browser tabs you'll see again are one-off OAuth consent screens for connecting a new app, not a dashboard you live in. Give your agent the MCP URL from gnt keys create and it can start querying rules.

Quickstart: self-host

Everything below runs on your own infrastructure with your own API keys. Nothing calls gnt.ai's hosted service.

git clone https://github.com/gnt-ai/gnt
cd gnt
./setup.sh

setup.sh copies both .env files, generates every secret it safely can (Fernet keys, the shared secrets apps/api and apps/store use to talk to each other), then asks for the three keys nothing can generate for you: Anthropic, Groq, ZeroEntropy, before building, migrating, and booting the stack. Skip any of the three and it still comes up. You just add them before relying on it (the script tells you exactly which ones are still placeholders when it finishes).

The API comes up on http://localhost:8000, with the MCP server mounted at http://localhost:8000/mcp. It runs Postgres (pgvector), Redis, the store (rules storage + approval gate), the API, and the background worker. apps/web (the marketing site) isn't part of it, since self-hosting gnt means running the API and MCP server, not the public website.

Full walkthrough, env var reference, first-login/GitHub-connect steps, upgrade notes, and troubleshooting: docs/self-hosting/README.md. Verified end to end against a real docker compose build/run/up, including one real boot bug it found and fixed along the way. Read it before your first real deploy, or if you'd rather run each step by hand instead of setup.sh. apps/api/DEPLOY.md covers the production-hardening step after that (the compose file connects everything as a single Postgres superuser for a fast local start. DEPLOY.md documents the restricted-role setup, gnt_app/ gnt_cron/gnt_admin with row-level security, an actual production deployment should run instead).

What the license allows

FSL-1.1-Apache-2.0 (see LICENSE). In plain words:

  • Read and audit every line, including the privacy/approval gate.
  • Self-host on your own infrastructure with your own keys, for your own internal use.
  • Modify it however you want.
  • Contribute changes back, see CONTRIBUTING.md (DCO sign-off, no CLA).
  • Two years after this repo goes public, the whole thing converts to Apache-2.0 and every restriction below disappears.

What it doesn't allow, until that conversion: running a competing hosted version of gnt as a commercial product or service. See NOTICE for the separate trademark rule: a fork's public service needs its own name, not "gnt" or the gnt.ai logo.

Architecture

apps/web     Next.js marketing site + docs (no dashboard, the terminal is the product surface)
apps/api     FastAPI backend: git-native rules + GitHub webhook, skill-pack compiler, MCP
             server, Slack/Zendesk/Intercom/Notion/Linear connectors
apps/cli     gnt CLI, published as @gnt-ai/cli. login, connect, review (opens PRs), pull,
             status, keys. Fully terminal after login
apps/store   Rules storage and the approval gate: the internal HTTP API apps/api talks to for
             everything past the git-native rules seam (Postgres + pgvector, hybrid search)

Each app has its own README with setup/run instructions.

  • Stack: Next.js 16 + Tailwind + Better Auth (web), FastAPI + Python 3.12 + SQLAlchemy 2.0 async + Alembic + ARQ (api), Postgres + pgvector with row-level security, Claude for the rule-conflict check, ZeroEntropy for embeddings/reranking.
  • MCP: the official Python SDK, mounted at /mcp inside the API. It's the one published, agent-facing surface.

Development

See CONTRIBUTING.md for dev setup, lint/test commands, and how to open a PR.

Links

  • Self-host: docs/self-hosting/README.md for the full walkthrough, plus apps/api/DEPLOY.md for production hardening
  • Security: SECURITY.md
  • Code of conduct: CODE_OF_CONDUCT.md
  • Questions or bugs: open a GitHub issue

License

Copyright © 2026 gnt.ai. Licensed under FSL-1.1-Apache-2.0, source-available today, converts to Apache-2.0 two years after public release. See NOTICE for the trademark terms.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选