Citadel MCP
Provides curated documentation for Next.js (App Router, Next.js 16), enabling AI agents to fetch and use Next.js guides and references.
Provides curated documentation for React, enabling AI agents to fetch React guides and references.
Provides curated documentation for Supabase, enabling AI agents to fetch Supabase guides and references.
Provides curated documentation for Turborepo, enabling AI agents to fetch Turborepo guides and references.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Citadel MCPshow me Next.js App Router docs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Citadel MCP
A Code Mode MCP server that gives AI coding agents curated, per-stack documentation as typed tools.
Citadel is built to be forked and tailored. The hosted package ships with a small starter set of stacks, but the real value comes from packaging the docs your agents actually need. Each stack is a tiny module — adding one is mostly mechanical.
Getting Started
Requirements
Node.js v20.19 or a newer latest maintenance LTS version
Install with add-mcp
Install the MCP server for all your coding agents:
npx add-mcp citadel-mcp@latestAdd -y to skip the confirmation prompt and install to all detected agents already in use in the project directory. Add -g to install globally across all projects.
Manual installation
Add the following config to your MCP client:
{
"mcpServers": {
"citadel": {
"command": "npx",
"args": ["-y", "citadel-mcp@latest"]
}
}
}Usingcitadel-mcp@latest ensures that your MCP client will always use the latest version of the Citadel MCP server.
MCP Client Configuration
Using Amp CLI:
amp mcp add citadel -- npx citadel-mcp@latestOr configure manually:
Follow Amp's MCP documentation and apply the standard configuration shown above.
Use the Claude Code CLI to add the Citadel MCP server:
claude mcp add -s user citadel -- npx -y citadel-mcp@latestUse -s project instead of -s user to scope the install to the current project. Restart Claude Code, then verify with claude mcp list. A working server advertises a single tool named docs.
Using Codex CLI:
codex mcp add citadel -- npx citadel-mcp@latestOr configure manually:
Follow the MCP setup guide with the standard configuration format:
Command:
npxArguments:
-y, citadel-mcp@latest
Go to Cursor Settings -> MCP -> New MCP Server. Use the JSON config provided above.
Using Gemini CLI:
Project-wide installation:
gemini mcp add citadel npx citadel-mcp@latestGlobal installation:
gemini mcp add -s user citadel npx citadel-mcp@latestUsing VS Code CLI:
code --add-mcp '{"name":"citadel","command":"npx","args":["-y","citadel-mcp@latest"]}'Or configure manually:
Follow the official VS Code MCP server setup guide and add the Citadel server through VS Code settings.
Navigate to Settings | AI | Manage MCP Servers and select + Add to register a new MCP server with the following configuration:
Name:
citadelCommand:
npxArguments:
-y, citadel-mcp@latest
Related MCP server: docs-mcp
What you get out of the box
The hosted package includes a starter set of stacks so you can try it immediately:
Next.js (App Router, Next.js 16)
React
Turborepo
Supabase guides
This list is intentionally small. For the best results, fork this repo and add the stacks your agents care about — your internal libraries, the framework version you actually use, or any docs site that publishes machine-readable markdown. See docs/adding-a-docs-tool.md.
How it works
Citadel is a Code Mode server: instead of advertising one tool per docs source, it advertises a single docs tool. The agent writes one async () => { ... } per turn that calls codemode.<stack>_docs(...) and codemode.<stack>_index() directly, and the server runs that code in a local Node sandbox. N doc fetches collapse into one round-trip.
Each stack contributes two callable tools to the sandbox SDK:
<stack>_index()— returns the doc index so the agent can pick a valid path<stack>_docs({ path })— fetches that specific doc as markdown
Citadel also exposes a cross-stack ranked search: codemode.docs_search({ query, stacks?, fetch: true }) returns BM25-ranked matches with markdown content attached in a single call.
Documentation
Using Citadel as an AI agent — playbook for the
docstool, served at runtime as MCP resourcecitadel://docs/agent-usage. SDK reference, parallel fan-out, error handling, worked examples.Adding a docs tool — package a new stack as
<stack>_index+<stack>_docs.
Local Development
To run the MCP server locally for development:
Clone the repository.
Install and build:
pnpm install pnpm buildConfigure your MCP client to use the local version:
{ "mcpServers": { "citadel-dev": { "command": "node", "args": ["/absolute/path/to/citadel-mcp/dist/index.js"] } } }Or with the Claude Code CLI:
claude mcp add -s user citadel-dev -- node /absolute/path/to/citadel-mcp/dist/index.js
For development with auto-reload, point the MCP client at tsx and the src entry instead:
claude mcp add -s user citadel-dev -- npx tsx /absolute/path/to/citadel-mcp/src/index.tsLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP server that provides tools to fetch live, version-accurate documentation, changelogs, examples, and method signatures for npm and PyPI packages, preventing AI coding agents from hallucinating stale APIs.Last updated32ISC
- Alicense-qualityAmaintenanceProvides a local MCP server for searching and retrieving documentation from 22+ open-source projects, enabling AI coding assistants to access up-to-date docs without network dependency.Last updated302MIT
- Alicense-qualityDmaintenanceA self-hosted MCP server that provides up-to-date documentation for enterprise and development tools directly to AI coding assistants like Claude Code and Cursor.Last updatedMIT
- Alicense-qualityDmaintenanceMCP server that provides AI coding agents automatic access to AGENTS.md documentation from GitHub repositories, enabling understanding of codebase conventions and patterns.Last updatedApache 2.0
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sustinbebustin/citadel-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server