aik-mcp
aik-mcp serves a Markdown-based AI knowledge base over MCP and manages installing its rules, skills, workflows, and agents into supported AI agent configs.
List, retrieve, search, create/update, and delete content items in categories: rules, skills, workflows, and agents.
Read supporting asset files bundled with a content item.
Filter by tag, category, or text query; optionally detect project stack to annotate applicability.
Install, reinstall, update, check updates for, list, uninstall, or uninstall all installed items for opencode, Claude Code, Cline, Codex, and Copilot.
Use project or global installation scope, with force override for gating failures.
Gate installs by applicable technology stacks and required MCP servers.
In HTTP/remote mode, installation tools return plans for the client agent to apply locally instead of writing config files directly.
Click on "Deploy 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., "@aik-mcp search for typescript conventions"
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.
aik-mcp turns a directory of Markdown files into a live, queryable knowledge base for any MCP-compatible AI agent — opencode, Claude Code, Cline, Codex, GitHub Copilot, and more.
Write your team's conventions, reusable workflows, and agent prompts as plain .md files with YAML frontmatter. aik-mcp serves them on demand — your agent can discover, read, search, and install them at runtime, across any project.
No database. No API to build. Just Markdown.
Features
Icon | Feature | Why it matters |
📝 | Knowledge as Markdown | Plain |
⚡ | Zero config |
|
🔎 | Full-text search | Fuzzy search across every rule, skill, and template — powered by Fuse.js. |
📦 | Install on demand | Push knowledge directly into your agent's runtime config with a single tool call. |
👀 | Live sync | A file watcher detects changes instantly. No restart. No downtime. |
🔌 | Universal MCP | Works with opencode, Claude Code, Cline, Codex, Copilot, and any MCP-compatible client. |
Related MCP server: mcp-wiki-server
Quick start
1. Create a rule
mkdir -p my-knowledge/rules
cat > my-knowledge/rules/typescript.md << 'EOF'
---
title: TypeScript Conventions
description: Coding standards for TypeScript projects
tags: [typescript, conventions]
version: "1.0.0"
compatibility: [opencode, claude-code, cline, codex, copilot]
---
## TypeScript Conventions
- Use explicit types for public API surfaces
- Prefer `interface` over `type` for object shapes
- Use `const` assertions for literal values
EOF2. Start the server
AIK_CONTENT_DIR=./my-knowledge npx aik-mcp3. Ask your agent
"Find and apply the TypeScript conventions rule for this project."Your agent calls aik_search, reads the rule, and applies it — all transparently through MCP.
Docs
Full documentation is available at openhoat.github.io/aik-mcp.
How it works
graph LR
Agent[AI Agent<br>opencode / Claude Code / Cline / Codex / Copilot] -->|MCP JSON-RPC| Server(aik-mcp)
Server --> Store[Content Store<br>in memory]
Store --> Files[Markdown files<br>rules/ skills/ workflows/ ...]
Server --> Watcher[File Watcher<br>live sync on change]
Server --> Tools[MCP Tools<br>list, get, search, write,<br>install, uninstall]Your agent speaks MCP on one side. aik-mcp speaks your file system on the other. Everything is cached in memory for fast lookups, and a file watcher keeps the cache up to date.
Client configuration
opencode
Add to opencode.jsonc or .opencode/opencode.jsonc in your project:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"aik": {
"type": "local",
"command": ["npx", "-y", "aik-mcp"],
"enabled": true,
"environment": {
"AIK_CONTENT_DIR": "/path/to/your/knowledge",
"LOG_LEVEL": "info",
},
},
},
}Claude Code
Add to .mcp.json or ~/.claude/settings.json:
{
"mcpServers": {
"aik": {
"command": "npx",
"args": ["aik-mcp"],
"env": {
"AIK_CONTENT_DIR": "/path/to/your/knowledge",
"LOG_LEVEL": "info"
}
}
}
}Cline
Add to cline.json or project .mcp.json:
{
"mcpServers": {
"aik": {
"command": "npx",
"args": ["aik-mcp"],
"env": {
"AIK_CONTENT_DIR": "/path/to/your/knowledge",
"LOG_LEVEL": "info"
}
}
}
}Codex
Add to ~/.codex/config.toml or project .codex/config.toml:
[mcp]
"aik" = { command = ["npx", "aik-mcp"], env = { AIK_CONTENT_DIR = "/path/to/your/knowledge", LOG_LEVEL = "info" } }GitHub Copilot
Configure the MCP server in your IDE settings (VS Code, JetBrains, etc.) and add project instructions to .github/copilot-instructions.md:
## MCP servers
aik-mcp provides knowledge management. Use `aik_list`, `aik_get`, `aik_search`, `aik_install`, and related tools to manage rules, skills, workflows, and agents.Tip: Set
AIK_CONTENT_DIRto a shared path (Dropbox, git repo, team NAS, etc.) to use the same knowledge base across projects and agents.
Remote HTTP client
Run the server once, reachable over the network, and point every client at it:
MCP_API_KEY="$(openssl rand -hex 32)" AIK_CONTENT_DIR=/srv/aik-content npx aik-mcp --http --port 3456The HTTP transport is fail closed: it refuses to start without MCP_API_KEY
(empty or the change-me placeholder is rejected), /health is the only public
route and every other request needs Authorization: Bearer <key>.
A remote server does not run on the client machine, so it cannot write the
client's agent configuration. In HTTP mode the installation tools therefore
return a plan — the exact files, section edits and config entries to apply —
and the client agent applies it locally with its own file tools. The bundled
instructions (aik_knowledge_content, served with every session) describe the
apply procedure; GET /plan/<item>?agent=&scope= returns the same JSON to a
shell script, for payloads too large to pass through a model, and the package
ships aik-apply to apply one:
curl -fsS -H "Authorization: Bearer $MCP_API_KEY" \
"https://aik-mcp.example.com/plan/skills/generate-changelog?agent=codex&scope=project" \
-o plan.json
aik-apply plan.json --base /path/to/projectSee Remote servers for the whole picture (sessions, authentication, plan application, content sync) and Tool reference for the mode-by-mode table.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"aik": {
"type": "remote",
"url": "https://aik-mcp.example.com/mcp",
"headers": { "Authorization": "Bearer {env:MCP_API_KEY}" },
"oauth": false,
},
},
},
}Content structure
Content items are organized by category as bundles — a directory with a
README.md entry file plus optional supporting assets:
Directory | Purpose |
| Coding standards, conventions, quality gates |
| Reusable instruction blocks (prompts, recipes) |
| Multi-step process definitions |
| Specialized agent configurations |
content/
skills/generate-changelog/
README.md # entry file — carries the frontmatter
assets/changelog.mjs # supporting asset, referenced relativelyThe README.md entry file is a Markdown document with YAML frontmatter:
---
title: "My Rule"
description: "What this rule enforces"
tags: [tag1, tag2]
version: "1.0.0"
compatibility: [opencode, claude-code, cline, codex, copilot]
---
## My Rule
Content here...Supporting assets are listed by aik_get and read via aik_get_asset.
When a skill is installed, its assets are copied alongside SKILL.md.
MCP tools
Knowledge base tools, identical in both transports:
Tool | Description |
| List content items, optionally filtered by category or tag |
| Retrieve a specific item by path (e.g. |
| Read a supporting asset bundled with an item |
| Full-text fuzzy search across all content |
| Create or update a content item from the agent |
| Delete a content item |
| Where each agent installs each category (base, dir, format) |
Installation tools. Over stdio the server runs on the machine the content is installed on, so it writes the files itself. Over HTTP it runs elsewhere: the same tools return a plan the client agent applies, and the ones that can only work locally disappear.
Tool | stdio (local) | HTTP (remote) |
| installs the item | returns the installation plan |
| removes the item | returns the uninstallation plan |
| reads the installed versions | compares an inventory you send |
| uninstall then install | — (apply an uninstall plan, then install) |
| updates an installed item | — |
| lists installed items | — (build the inventory from |
| removes every installed item | — |
Resources
URI | Description |
| List all items in a category (e.g. |
| Search items by keyword |
CLI options
Flag | Default | Description |
| — | Start in HTTP/SSE mode instead of stdio |
|
| HTTP server port (only with |
| — | Disable file watching |
Environment variables
Variable | Default | Description |
|
| Path to the content directory |
| — | Bearer key, mandatory with |
|
| Log level: |
Development
npm install
npm run build
npm run test
npm run qaScripts
Script | Description |
| Compile TypeScript to |
| Run the unit test suite (Vitest) |
| Run the unit tests only ( |
| Run the e2e tests only ( |
| Lint, format, architecture and docs checks |
| Auto-fix lint and formatting issues |
| TypeScript type checking ( |
| Full pipeline: qa → typecheck → build → tests |
Contributing
Contributions are welcome! Open an issue or submit a PR.
See the changelog for release history.
Full documentation at openhoat.github.io/aik-mcp.
License
MIT
Available Tools
14 toolscheck_updatesB
Check for installed content items that have newer versions available in the knowledge base.
Inputs: agent (required), scope, projectDir.
deleteB
Delete a content item by its path
Inputs: path (required).
getA
Retrieve a specific content item by its path (e.g. "rules/coding-standards")
Inputs: path (required).
get_assetB
Read a supporting asset file bundled with a content item (e.g. an example, script, or template referenced by its README).
Inputs: path (required), asset (required).
installB
Install a content item (rule, skill, workflow, or agent) into the current project so it is loaded automatically in future sessions. Supports opencode, Claude Code, Cline, and Codex.
Inputs: path (required), agent (required), force, scope, +1 more.
layoutA
Return where each AI agent (opencode, Claude Code, Cline, Codex, GitHub Copilot) installs each content category, for the project and global scopes: directory, file template, materialization format and config update. Use it to list an existing installation on your machine (inventory) or to interpret an installation plan.
Inputs: no named parameters.
listC
List available content items (rules, skills, workflows, agents)
Inputs: tag, query, category, projectDir.
list_installedB
List all aik-installed content items in the current project config. Supports opencode, Claude Code, Cline, and Codex.
Inputs: agent (required), scope, projectDir.
reinstallB
Reinstall a previously installed content item. Uninstalls the old entry and installs the latest version from the knowledge base. Supports opencode, Claude Code, Cline, and Codex.
Inputs: path (required), agent (required), force, scope, +1 more.
searchB
Full-text fuzzy search across all content items
Inputs: query (required), limit, category, projectDir.
uninstallB
Uninstall a content item from the current project. Removes the file and the config reference. Supports opencode, Claude Code, Cline, and Codex.
Inputs: path (required), agent (required), scope, projectDir.
uninstall_allA
Uninstall ALL aik-installed content items from the current project. Removes all aik-managed files and config references.
Inputs: agent (required), scope, projectDir.
updateB
Update a previously installed content item if a newer version is available in the knowledge base. Supports opencode, Claude Code, and Cline.
Inputs: path (required), agent (required), scope, projectDir.
writeC
Create or update a content item (rules, skills, workflows, agents)
Inputs: path (required), content (required), tags, title, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools map to a clean resource+action boundary: content items (list/get/search/write/delete), assets (get_asset), and installation lifecycle (install/list_installed/uninstall/check_updates). The main friction is the reinstall vs update pair — both claim to bring an installed item to the latest version from the knowledge base — and list vs list_installed, which differ only by scope (all content vs project-installed). Descriptions do resolve these, but an agent can plausibly misselect reinstall when update is intended.
Two conventions coexist: bare verbs for core content operations (list, get, search, write, delete) and verb_noun for the derived operations (get_asset, list_installed, uninstall_all, check_updates). Both are snake_case and readable, but the bare-verb group is inconsistent with the compound group and omits the object noun (get what?). 'layout' is also an outlier — a noun-like name in a set of action verbs.
14 tools is well within the well-scoped band for a content knowledge base plus installer, and each tool has a defensible job. There is mild redundancy — uninstall_all is a convenience wrapper over uninstall, and reinstall overlaps update — but nothing that bloats the surface unreasonably.
Content items have full coverage (list/get/search/write/delete, with write handling update), and the install lifecycle is thorough (install, reinstall, update, check_updates, list_installed, uninstall, uninstall_all, layout). Gaps: assets are read-only (get_asset with no write/delete counterpart), and install/uninstall are scoped only to the 'current project' even though layout documents both project and global scopes, so global installs appear unsupported.
Maintenance
Related MCP Connectors
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
1Free, source-checked directory of AI agent tools, MCP servers and skills, with read-only search.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceExposes MCP tools to list, search, and load Markdown skills from a local folder, enabling coding agents to discover and reuse procedural knowledge.MIT
- FlicenseAqualityCmaintenanceEnables MCP-compatible clients to search and read local markdown documentation, allowing agents to retrieve relevant doc snippets or full files by path.2-
- AlicenseNot gradedqualityBmaintenanceEnables agents to semantically search and read curated local markdown knowledge bases through MCP, with optional CLI and dashboard tooling.MIT
- AlicenseAqualityBmaintenanceProvides AI agents with a local, private Markdown-based memory vault and SQLite search. Enables agents to search, read, list, and traverse linked knowledge pages via MCP with zero external runtime dependencies.79MIT