Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII redaction and tool-call guards, rate limits, budgets, cost accounting and audit logs.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Write & edit code.
Model Context Protocol integration for CodeIndexer
Same catalog task: Write & edit code.
MCP server for ESLint
Same catalog task: Write & edit code.
MCP session management for Metorial. Provides session handling and tool lifecycle management for Model Context Protocol.
Fetched from the repository for this visit.
A self-hosted AI API and MCP gateway for organizations. Every model request and every MCP tool call passes through one gateway, where it is authenticated against the organization's identity provider, checked against limits and budgets, inspected by security guards, priced, and written to the audit log. It plays the role for AI access that a bastion host plays for server access.
For individual developers: ThinkWatch Lite is a free desktop app (MIT) that runs a local gateway for Claude Code, Codex and other AI clients on macOS, Windows and Linux.
Sponsors: Want to appear here?
┌──────────────────────────────────────┐
Claude Code ──────>│ │──> OpenAI
Cursor ───────────>│ Gateway :3000 │──> Anthropic
Custom Agent ─────>│ AI API + MCP │──> Google Gemini
CI/CD Pipeline ───>│ │──> Azure OpenAI / AWS Bedrock
└──────────────────────────────────────┘
┌──────────────────────────────────────┐
Admin Browser ────>│ Console :3001 │
│ Management UI + Admin API │
└──────────────────────────────────────┘
<<TW_EMAIL_1>> before it goes upstream, and restores them in the answer, streamed ones included. Dangerous commands checks the tool calls in each response, and the content filter looks for prompt-injection phrases, hidden characters and chosen words in what the caller sent and in the text of answers, then refuses the request, deletes or replaces them, or records them.tw- virtual keys that can be scoped to the AI gateway, the MCP gateway or both. Keys are stored only as hashes and rotate with a grace period.# 1. Start infrastructure
make infra
# 2. Generate dev secrets + start backend (gateway :3000 + console :3001)
make dev-secrets # writes .env from .env.example with random secrets
make dev-backend
# 3. Start frontend dev server
cd web && pnpm install && pnpm dev
# 4. Complete the setup wizard at http://localhost:5173/setup
The setup wizard creates the first Super Admin account, sets the site name and issues a first API key; providers are added in the console afterwards. The console then has copy-paste setup instructions for Claude Code, Cursor, Continue, Cline, the OpenAI and Anthropic SDKs, and cURL.
| Option | Command | Notes |
|---|---|---|
| Docker Compose | make deploy | Generates .env.production with random secrets on first run |
| Kubernetes | make helm-deploy | Helm chart in deploy/helm/think-watch; secrets are generated on install and kept on upgrade |
The gateway (port 3000) is the only part that clients need to reach. The console (port 3001) serves the management UI and admin API and belongs behind a VPN or firewall. See the Deployment Guide for TLS, hardening and production settings.
MCP identity
tw- key to one of them.-32050 with the authorization URL, which compliant MCP clients can show.Security guards
<<TW_LABEL_n>> — SECRET for credentials, ID_NUMBER, CARD_NUMBER, EMAIL and PHONE for personal data, a label of its own for a custom rule — and is restored in the answer. E-mail addresses and phone numbers ship switched off.U+200B, U+E0000–U+E007F), case-sensitive or not, and checks requests (the caller's messages and tool results), the text of answers, or both. It refuses the request, deletes what it matched, replaces it with a text of its own (*** unless it says otherwise), or records only. Answers are checked as they stream: only the tail that could still grow into a match is held back, and what a rule deletes or replaces never reaches the client. A rule that checks answers cannot refuse, nor match code points. Hidden characters are content rules: Unicode tag characters and bidirectional controls ship on, zero-width and private-use characters off.max_tokens on every request to that model; it replaces the old output length guardrail.Limits and budgets
429 says in Retry-After when the limit frees.429. Such a request has passed the caller's own limits and counts on them.GET /v1/usage on the gateway port tells a client, with its API key, what it has used today and this month and what room its limits leave.security.rate_limit_fail_closed refuses those requests instead.Product page: thinkwat.ch/thinkwatch · Full documentation: thinkwat.ch/docs
| Document | Description |
|---|---|
| Architecture | System design, dual-port model, data flow |
| Deployment Guide | Docker Compose, Kubernetes, TLS, production hardening |
| Configuration | Environment variables and settings |
| API Reference | Gateway and console endpoints |
| Security | Auth model, encryption, RBAC, threat model |
| Secret Rotation | Rotating provider keys, JWT secrets and admin credentials |
ThinkWatch uses four crates from ThinkWatch Core (MIT): tw-dialect for conversion between API formats and usage parsing, tw-guard for the security guards, tw-breaker for the circuit-breaker state machine, and tw-bedrock for Amazon Bedrock signing, event streams and the model catalog.
ThinkWatch Lite is the desktop edition for individual developers, a local gateway for Claude Code, Codex and other clients on macOS, Windows and Linux (MIT).
Contributions are welcome. Please open an issue to discuss before submitting a PR for major changes.
Your first pull request asks you to sign the Contributor License Agreement once; CONTRIBUTING.md explains how.
ThinkWatch is source-available under the Business Source License 1.1.
Non-production use is free. Production use is free up to both 10,000,000
Billable Tokens and 10,000 MCP Tool Calls per UTC calendar month; above
either threshold, a commercial license is required and priced by usage tiers.
See LICENSING.md for the production-use thresholds, the
Billable Token and MCP Tool Call definitions, the tiering model, and the
changeover to GPL-2.0-or-later.
Loading reviews...
GitHub checked 448h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.