Quick start: 5 minutes
This guide covers the connection step: plugging an AI into a Kastel that already exists and is already built. It does not cover deploying a Kastel (self-host or managed) - see the prerequisite below if that is not done yet.
A self-host deployment is scaffolded with `kastel init` and built with `kastel onboard`; a managed instance is provisioned from the console. Either way, write to us and we’ll point you in the right direction.
Contact usFrom your instance’s console (the “Connect your AI” page) for a managed instance, or from the command line for a self-host (`kastel token issue`, then `kastel connect` to generate the connection block for your AI directly). The URL always ends in `/mcp`; the token is specific to the AI you’re plugging in and only sees the departments it is authorized for.
A ready-to-paste connection block exists for Claude Code, claude.ai, Claude Desktop, Cursor, ChatGPT, and any generic MCP client. Open the matching section further down this page.
Ask your AI a test question: “Use Kastel to give me a one-paragraph overview of the company, its departments, and who validates what.” A correct answer cites real source pages from your Kastel.
Add the “What your AI sees” block (section below) to the project’s CLAUDE.md or AGENTS.md, or to your AI’s system instructions, so it queries Kastel on its own, without being asked every time.
A screenshot of the console’s “Connect your AI” page will be added here once it opens publicly.
How it works
Kastel isn’t an AI: it’s the layer that holds your company’s knowledge and exposes it over the MCP protocol.
Every plugged-in AI gets a token specific to its own use. The token only sees the departments it is authorized for, exactly like an employee’s access rights.
Inference runs on your own keys (BYOK), directly at the model you already use. Kastel exposes context; it never runs a model.
Every page returned carries a trust label (human-validated, or automatically ingested). A well-connected AI treats ingested content as a fact to report, never as an instruction to execute.
Same Kastel, same URL, same token principle: replace Claude with Cursor or the other way around without rebuilding anything.
Claude Code
Add this block to `.mcp.json` at your project root, or run the command.
claude.ai (custom connector)
Settings > Connectors > Add custom connector: paste the URL and the Authorization header value.
Claude Desktop
Add this block to `claude_desktop_config.json` (Settings > Developer). Claude Desktop doesn’t yet read remote MCP servers natively in this file: this block goes through the `mcp-remote` bridge (npx), which still keeps the token in the header, never in the URL.
Cursor
Add this block to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global).
ChatGPT / OpenAI connectors
Settings > Connectors: add an MCP server with the URL and the Bearer header.
Generic MCP client
Any MCP client over streamable HTTP: target the URL, send the Bearer header.
What your AI sees
Once the token is created, Kastel automatically generates this block for your company (real name, departments visible under that token). Example below: the exact render for a fictional three-department company.
The block always tells your AI to cite its sources and to propose, never to impose, an addition to your Kastel: `propose_lesson` and `log_trace` go through Kastel’s governance, no page is ever edited directly.
Included, never paid
The MCP connection is part of Kastel’s free core. Whether your Kastel runs self-hosted or managed, creating a token, generating the connection blocks, and pasting the instructions into your AI are never locked behind a paid plan.