aik-mcp

aik-mcp

Enables AI agents to discover, read, search, and install Markdown-based knowledge (rules, skills, workflows) from a local directory via MCP tools.

Category
Visit Server

README

<p align="center"> <h1 align="center">aik-mcp</h1> <p align="center"> <em>AI Knowledge Repository — MCP Server</em> </p> <p align="center"> <a href="https://www.npmjs.com/package/@headwood/aik-mcp"><img src="https://img.shields.io/npm/v/@headwood/aik-mcp?style=flat-square&logo=npm" alt="npm version"></a> <a href="https://github.com/openhoat/aik-mcp/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/openhoat/aik-mcp/ci.yml?branch=main&style=flat-square&logo=github&label=CI" alt="CI"></a> <a href="https://github.com/openhoat/aik-mcp/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@headwood/aik-mcp?style=flat-square" alt="license"></a> <a href="https://nodejs.org/"><img src="https://img.shields.io/node/v/@headwood/aik-mcp?style=flat-square" alt="node version"></a> <a href="https://github.com/openhoat/aik-mcp"><img src="https://img.shields.io/github/last-commit/openhoat/aik-mcp?style=flat-square&logo=git" alt="last commit"></a> <a href="https://github.com/openhoat/aik-mcp/issues"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs welcome"></a> </p> </p>

aik-mcp is an MCP server that turns a directory of Markdown files into a queryable knowledge base for any MCP-compatible AI agent — opencode, Claude Code, Cline, and others.

Write rules, skills, workflows, and templates as plain Markdown files with frontmatter. Your AI agent can then discover, read, search, and install them at runtime.

Table of Contents

Installation

# Run directly (no install)
npx aik-mcp

# Install globally
npm install -g aik-mcp
aik-mcp

# From a local build
git clone https://github.com/openhoat/aik-mcp.git
cd aik-mcp
npm install
npm run build

Quick start

1. Create a content directory

mkdir -p my-knowledge/rules my-knowledge/skills my-knowledge/workflows

2. Add a rule

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]
---

# TypeScript Conventions

- Use explicit types for public API surfaces
- Prefer `interface` over `type` for object shapes
- Use `const` assertions for literal values
EOF

3. Start the server

AIK_CONTENT_DIR=./my-knowledge aik-mcp

4. Configure your AI agent

See Client configuration below.

5. Ask your agent

Once connected, your agent can use tools like aik_search and aik_get to find and apply your knowledge.

Client configuration

opencode

Add to your project's .mcp.json:

{
  "mcpServers": {
    "aik": {
      "command": "npx",
      "args": ["aik-mcp"],
      "env": {
        "AIK_CONTENT_DIR": "/path/to/your/content",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Claude Code

Add to your project's .mcp.json (or ~/.claude/settings.json for global use):

{
  "mcpServers": {
    "aik": {
      "command": "npx",
      "args": ["aik-mcp"],
      "env": {
        "AIK_CONTENT_DIR": "/path/to/your/content",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Cline

Add to your cline.json or project .mcp.json:

{
  "mcpServers": {
    "aik": {
      "command": "npx",
      "args": ["aik-mcp"],
      "env": {
        "AIK_CONTENT_DIR": "/path/to/your/content",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Tip: Set AIK_CONTENT_DIR to a shared location (Dropbox, git repo, etc.) to use the same knowledge base across projects and agents.

Environment

Variable Description
AIK_CONTENT_DIR Path to the content directory (default: current working directory)
LOG_LEVEL Log level: trace, debug, info, warn, error, silent (default: info)

CLI options

Flag Description
--http Start in HTTP mode (default: stdio)
--port <n> HTTP port (default: 3456)
--no-watch Disable file watching

MCP tools

Tool Description
aik_list List content items, optionally filtered by category or tag
aik_get Retrieve a specific item by path (e.g. rules/typescript)
aik_search Full-text fuzzy search across all content
aik_write Create or update a content item
aik_delete Delete a content item
aik_install Install an item into the project's agent config
aik_reinstall Uninstall + reinstall the latest version of an item
aik_uninstall Remove an installed item from the project
aik_uninstall_all Remove all aik-installed items from the project
aik_list_installed List items currently installed in the project

Resources

  • aik://{category} — list items in a category (e.g. aik://rules)
  • aik://search?q=... — search items by keyword

When working on a task

  1. Use aik_list or aik_search to find relevant content
  2. Use aik_get to read specific items
  3. Apply the relevant rules, follow the workflows, and invoke skills as needed

Content structure

Content items are organized by category:

Directory Content
rules/ Coding standards, workflows, conventions
skills/ Reusable instruction blocks
workflows/ Multi-step workflow definitions
agents/ Specialized agent definitions
commands/ Custom command definitions
templates/ Project/component templates

Adding content

Create a .md file with frontmatter in the appropriate category directory:

---
title: "My Rule"
description: "Description of the rule"
tags: [tag1, tag2]
version: "1.0.0"
compatibility: [opencode, claude-code, cline]
---

# My Rule

Content here...

Development

npm install
npm run build
npm run test
npm run qa

Commands reference

Script Description
npm run build Compile TypeScript to dist/
npm test Run Jest test suite
npm run qa Lint + format check (Biome + markdownlint)
npm run qa:fix Auto-fix lint and formatting issues
npm run validate Run qa + build + test (same as CI)

Contributing

Contributions are welcome! Please open an issue or submit a PR.

See the changelog for release history.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured