ai-context-inspector MCP server
✓ VerifiedScans, exports, and imports AI configurations, MCP servers, custom skills, and persistent memories across multiple AI tools.
Also known as cocaxcode/ai-context-inspector, @cocaxcode/ai-context-inspector
- Stars
- 1
- Tools
- 24
- Downloads, 30 days
- 292
- Latest version
- 0.4.9
- Last commit
- Mar 29, 2026
- License
- MIT
What is ai-context-inspector MCP?
ai-context-inspector is an MCP server. Scans, exports, and imports AI configurations, MCP servers, custom skills, and persistent memories across multiple AI tools. It exposes 24 tools, such as claude, cursor, windsurf.
Summary generated from the project's README
About ai-context-inspector MCP server
Developers managing complex AI environments can use this tool to discover and manage their entire ecosystem of configurations. It scans project directories and user-level folders to find MCP servers, custom skills, agents, and persistent memories across 19 different AI tools. By running the CLI or connecting it as an MCP server via stdio transport, users can gain a complete view of their local AI setup.
The utility allows for exporting an entire AI ecosystem into a single bundle and importing it into one of seven supported targets, including Claude, Cursor, Windsurf, Copilot, Gemini, Codex, and OpenCode. It includes built-in secret redaction to ensure credentials remain safe during the transfer process. Everything runs locally on your machine, meaning your configurations and sensitive data never leave your local environment.
Through the scan and introspect tools, the server can live-connect to existing MCP servers to list their specific tools, resources, and prompts. It provides a visual HTML dashboard for reviewing results or raw JSON for programmatic use.
What you can do with it
- 1Audit local AI ecosystemGenerate a visual report of every AI instruction file and agent present in your project.
- 2Inspect MCP server capabilitiesConnect to running MCP servers to see a list of their available tools and prompts.
- 3Share safe AI setupsExport your project's AI context while redacting sensitive environment variables.
Written from the project's README. Every use case is checked against a quote from it.
How to install ai-context-inspector MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall ai-context-inspector MCP in Claude Code
$ claude mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspectorInstall ai-context-inspector MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/ai-context-inspector"
]
}
}
}Install ai-context-inspector MCP in VS Code
.vscode/mcp.json
{
"servers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cocaxcode/ai-context-inspector"
]
}
}
}Install ai-context-inspector MCP in VS Code CLI
$ code --add-mcp '{"name":"ai-context-inspector","type":"stdio","command":"npx","args":["-y","@cocaxcode/ai-context-inspector"]}'Install ai-context-inspector MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/ai-context-inspector"
]
}
}
}Install ai-context-inspector MCP in Codex
$ codex mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspectorInstall ai-context-inspector MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.ai-context-inspector] command = "npx" args = ["-y", "@cocaxcode/ai-context-inspector"]
Install ai-context-inspector MCP in Gemini CLI
$ gemini mcp add -s user ai-context-inspector npx -- -y @cocaxcode/ai-context-inspectorInstall ai-context-inspector MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/ai-context-inspector"
]
}
}
}ai-context-inspector MCP tools 24
Detected from the READMEclaudecursorwindsurfcopilotgeminicodexopencodedirectoryinclude_userintrospecttimeoutcommand
| claude | — | |
| cursor | — | |
| windsurf | — | |
| copilot | — | |
| gemini | — | |
| codex | — | |
| opencode | — | |
| directory | — | |
| include_user | — | |
| introspect | — | |
| timeout | — | |
| command | — |
Show all 24 toolsShow fewer tools
argsenvurltransportdironlysecretsfiletargetscopeforceconfirm
| args | — | |
| env | — | |
| url | — | |
| transport | — | |
| dir | — | |
| only | — | |
| secrets | — | |
| file | — | |
| target | — | |
| scope | — | |
| force | — | |
| confirm | — |
Automated checks
Ran Nov 15, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablecocaxcode/ai-context-inspector is public and reachablegithub.com/cocaxcode/ai-context-inspector ↗Pass
- Package names this repository as its source@cocaxcode/ai-context-inspector names cocaxcode/ai-context-inspector as sourcenpmjs.com/package/@cocaxcode/ai-context-inspector ↗Pass
- Build provenance (Sigstore attestation)No build attestation published for this releaseNot checked
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-03-29github.com/cocaxcode/ai-context-inspector ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from @cocaxcode/ai-context-inspectorPass
- No critical advisory in the package or its dependencies99 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model24 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNo tool named like delete, drop or execPass
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubThe most comprehensive AI ecosystem scanner available. AI Context Inspector discovers every AI configuration file, MCP server, custom skill, agent, and persistent memory in your project — across 19 tools — and gives you the full picture in seconds. Export your entire AI setup and import it into any of 7 supported tools (Claude, Cursor, Windsurf, Copilot, Gemini, Codex, OpenCode) with automatic secret redaction. Zero config. Zero runtime dependencies beyond MCP SDK and Zod. Everything runs locally — your configs and credentials never leave your machine.
Quick Start
npx -y @cocaxcode/ai-context-inspector@latest
That's it. An HTML dashboard opens with everything your AI tools know about your project.
# Scan a specific directory
npx -y @cocaxcode/ai-context-inspector@latest --dir /path/to/project
# Include user-level configs (~/.claude, ~/.gemini, etc.)
npx -y @cocaxcode/ai-context-inspector@latest --user
# Live-connect to each MCP server and list its tools
npx -y @cocaxcode/ai-context-inspector@latest --introspect
# Output raw JSON instead of HTML
npx -y @cocaxcode/ai-context-inspector@latest --json
| Flag | Description | Default |
|---|---|---|
--dir <path> |
Directory to scan | . (current) |
--user |
Include user-level configs (~/) |
false |
--introspect |
Connect to MCP servers and list tools | false |
--timeout <ms> |
Introspection timeout per server | 10000 |
--json |
Output JSON instead of HTML | false |
--mcp |
Run as MCP server (stdio transport) | false |
MCP Server Setup
Run as an MCP server so your AI tools can inspect their own ecosystem.
Claude Code
claude mcp add --scope user ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
Cursor / Windsurf — add to .cursor/mcp.json or equivalent:
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
VS Code — add to .vscode/mcp.json:
{
"servers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
Codex CLI:
codex mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp
Or add directly to any .mcp.json:
{
"mcpServers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
What It Detects
| Tool | Context Files | What's Found |
|---|---|---|
| Claude Code | CLAUDE.md, .claude/, .mcp.json |
Instructions, MCP config, skills, agents, memory |
| Cursor | .cursorrules, .cursor/rules/, .cursorignore |
Rules, ignore patterns |
| Windsurf | .windsurfrules, .windsurf/rules/ |
Codeium/Windsurf rules |
| GitHub Copilot | .github/copilot-instructions.md, .github/agents/ |
Instructions, custom agents |
| Gemini CLI | GEMINI.md, .gemini/, .geminiignore |
Config, rules |
| OpenAI Codex | AGENTS.md, AGENT.md, .codex/ |
Agent instructions |
| OpenCode | OPENCODE.md, .opencode/, opencode.json |
CLI config |
| Aider | .aider.conf.yml, .aiderignore |
Config, model settings |
| Cline | .clinerules, .clineignore |
Rules (file or directory) |
| Roo Code | .roo/rules/, .roorules, .rooignore |
Rules |
| Continue.dev | .continuerules, .continue/config.yaml |
Rules, config |
| Amazon Q | .amazonq/rules/ |
Developer rules |
| Augment | .augment/rules/, .augment-guidelines |
Code rules |
| Replit | .replit.md |
Agent instructions |
| Firebase Studio | .idx/airules.md |
AI rules |
| VS Code | .vscode/mcp.json |
MCP configuration |
| Tabnine | .tabnine.yaml |
AI config |
| Sourcegraph | .sourcegraph/ |
Cody config |
| Universal | CONVENTIONS.md |
Multi-tool conventions |
Tip: Pass
--userto also scan user-level configs:~/.claude/,~/.gemini/,~/.codex/,~/.continue/,~/.aider.conf.yml,~/.augment/,~/.github/agents/,~/.codeium/,~/.opencode/,~/.tabnine/.
Beyond context files, the scanner also detects:
- MCP servers from
.mcp.json,~/.claude.json,.vscode/mcp.json, Claude Desktop config — with optional live introspection - Custom skills in
.claude/skills/(including symlinks fromnpx skills add) - Custom agents in
.claude/agents/with memory detection - Persistent memories — Claude Memory, agent memory, engram, OpenSpec, ATL
Features
Scan
npx -y @cocaxcode/ai-context-inspector@latest
npx -y @cocaxcode/ai-context-inspector@latest --user --introspect
Generates a self-contained HTML dashboard with dark/light mode, search, collapsible sections, file previews, and color-coded tool badges. Pass --json for raw output.
Export
# Export your AI ecosystem to .aci/bundle.json
npx -y @cocaxcode/ai-context-inspector@latest export
# Export only MCP and context configs, redact secrets
npx -y @cocaxcode/ai-context-inspector@latest export --only mcp,context --secrets none
| Flag | Description | Default |
|---|---|---|
--dir <path> |
Directory to export | . |
--output <path> |
Output directory | .aci/ |
--include-user |
Include user-level configs | false |
--only <categories> |
Filter: mcp,skills,agents,memories,context |
all |
--secrets <mode> |
none (redact) or all (include) |
interactive |
Import
# Import into a Cursor project
npx -y @cocaxcode/ai-context-inspector@latest import --target cursor
# Auto-detect tool, skip confirmation, overwrite existing
npx -y @cocaxcode/ai-context-inspector@latest import --yes --force
| Flag | Description | Default |
|---|---|---|
[file] |
Path to bundle JSON | auto-detect .aci/bundle.json |
--dir <path> |
Target directory | . |
--target <tool> |
Target tool (see table) | auto-detect |
--scope <scope> |
project or user |
per-resource |
--force |
Overwrite existing resources | false |
--yes |
Skip confirmation prompt | false |
--only <categories> |
Filter: mcp,skills,agents,memories,context |
all |
--secrets <mode> |
none or all |
interactive |
Supported Import Targets
| Target | MCP Config | Context File | Rules Dir | Skills | Agents |
|---|---|---|---|---|---|
claude |
.mcp.json |
CLAUDE.md |
-- | .claude/skills/ |
.claude/agents/ |
cursor |
.cursor/mcp.json |
.cursorrules |
.cursor/rules/ |
-- | -- |
windsurf |
.mcp.json |
.windsurfrules |
.windsurf/rules/ |
-- | -- |
copilot |
.vscode/mcp.json |
.github/copilot-instructions.md |
.github/instructions/ |
-- | .github/agents/ |
gemini |
.gemini/settings.json |
GEMINI.md |
.gemini/rules/ |
-- | -- |
codex |
.mcp.json |
AGENTS.md |
.codex/rules/ |
-- | -- |
opencode |
opencode.json |
OPENCODE.md |
.opencode/rules/ |
-- | -- |
Note: Secrets handling has three modes: none (redact all — safe for sharing), all (include as-is), or interactive (prompt per variable, CLI default). Environment variables in MCP configs are detected automatically.
MCP Tool Reference
When running as an MCP server (--mcp), five tools are exposed:
scan
Discover the complete AI ecosystem in a project directory.
| Parameter | Type | Required | Description |
|---|---|---|---|
directory |
string | No | Path to scan (default: cwd) |
include_user |
boolean | No | Include user-level configs |
introspect |
boolean | No | Live-connect to MCP servers |
timeout |
number | No | Introspection timeout (ms) |
introspect_mcp
Connect to a specific MCP server and list its tools, resources, and prompts.
| Parameter | Type | Required | Description |
|---|---|---|---|
command |
string | Yes* | Command to launch the server |
args |
string[] | No | Arguments for the command |
env |
object | No | Environment variables |
url |
string | Yes* | URL for HTTP/SSE servers |
transport |
string | No | stdio (default) or http |
timeout |
number | No | Connection timeout (ms) |
*Either command (stdio) or url (http) is required.
generate_report
Generate a standalone HTML dashboard from scan results.
| Parameter | Type | Required | Description |
|---|---|---|---|
directory |
string | No | Path to scan |
include_user |
boolean | No | Include user-level configs |
introspect |
boolean | No | Introspect MCP servers |
timeout |
number | No | Introspection timeout (ms) |
export_ecosystem
Export the complete AI ecosystem to a portable .aci/bundle.json.
| Parameter | Type | Required | Description |
|---|---|---|---|
dir |
string | No | Directory to scan (default: cwd) |
include_user |
boolean | No | Include user-level configs |
only |
string[] | No | Categories: mcp, skills, agents, memories, context |
secrets |
string | No | "none" (default), "all", or ["VAR1", "VAR2"] |
import_ecosystem
Import a bundle into a project, adapting configuration to the target tool.
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
string | No | Path to bundle (auto-detects .aci/bundle.json) |
dir |
string | No | Target directory (default: cwd) |
target |
string | No | Target tool (auto-detects): claude, cursor, windsurf, copilot, gemini, codex, opencode |
scope |
string | No | project or user |
force |
boolean | No | Overwrite existing resources |
confirm |
boolean | No | Execute import (default: false = dry-run) |
only |
string[] | No | Categories to import |
secrets |
string | No | "none", "all", ["VAR1"], or {"VAR1": "value"} |
Warning:
import_ecosystemdefaults to dry-run mode (confirm: false). Setconfirm: trueto actually write files.
Architecture
src/
├── index.ts # Entry: CLI vs MCP mode routing
├── cli.ts # CLI arg parsing + orchestration
├── server.ts # createServer() MCP factory
├── scanner/ # 6 parallel scanners (Promise.all)
│ ├── catalog.ts # AI_FILE_CATALOG — 50+ entries, 19 tools
│ ├── context-files.ts # Scan .md, rules, configs
│ ├── mcp-configs.ts # Parse .mcp.json, ~/.claude.json, etc.
│ ├── mcp-introspect.ts # Connect to servers, list tools/resources
│ ├── skills.ts # Skills + symlinks + frontmatter
│ ├── agents.ts # Agents + memory detection
│ └── memories.ts # engram, openspec, .atl, claude memory
├── ecosystem/ # Export/import engine
│ ├── export.ts # Scan → bundle → .aci/bundle.json
│ ├── import.ts # Load → plan → execute
│ ├── target-map.ts # Path configs for 7 AI tools
│ ├── detect-target.ts # Auto-detect tool in project
│ └── secrets.ts # Env var detection + redaction
├── report/ # HTML dashboard generator
│ ├── generator.ts # generateHtml(ScanResult) → string
│ ├── sections.ts # Section renderers
│ ├── styles.ts # CSS (dark/light)
│ └── scripts.ts # JS (collapse, search, preview)
└── tools/ # 5 MCP tool handlers
├── scan.ts
├── introspect.ts
├── report.ts
├── export.ts
└── import.ts
Stack: TypeScript 5 (strict, ESM) / MCP SDK / Zod / tsup / Vitest
ai-context-inspector MCP questions
How do I add ai-context-inspector MCP to Claude Code?
Run claude mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector in your terminal. Add --scope user to make it available in every project.
How do I add ai-context-inspector MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does ai-context-inspector MCP provide?
It exposes 24 tools, including claude, cursor, windsurf, copilot, gemini.
Does my data leave my machine?
No, everything runs locally and your configurations and credentials never leave your machine.
Can I redact secrets when exporting my AI setup?
Yes, you can export your ecosystem with automatic secret redaction or choose to include them.
What tools can I import my configuration into?
You can import into Claude, Cursor, Windsurf, Copilot, Gemini, Codex, and OpenCode.
How can I use this as an MCP server?
You can run it as an MCP server using the --mcp flag so your AI tools can inspect their own ecosystem.