skillsearch-mcp

skillsearch-mcp

Semantic skill-library search MCP server that finds relevant skills or Markdown knowledge files from local directories using embeddings, SQLite vector storage, and Reciprocal Rank Fusion.

Category
Visit Server

README

skillsearch-mcp

Semantic skill-library search as an MCP server. Given a natural-language query, it finds the most relevant skills (or any Markdown knowledge files) in your local skill directories — works out of the box with Claude Code, Codex, Cursor, and any MCP client.

Built on a small, local-first stack:

  • Embeddings: bge-small-zh-v1.5 via Ollama (works for Chinese + English)
  • Storage: SQLite (WAL) — vector blobs + keyword columns, no heavy vector DB
  • Ranking: dual-channel Reciprocal Rank Fusion (cosine + substring keywords), so both semantic intent and exact terms like ffmpeg or 14234 are found
user query ──▶ embed (bge-small-zh) ──┐
              keyword grams (4/2-gram) ─┴─▶ RRF ──▶ top-k skills + paths

Why

Claude Code and Codex already have filesystem access. What they lack is a fast way to answer "which of my 100+ skills/knowledge files matches this task?". This server turns your skill library into a searchable index that any MCP client can query in ~100ms (local Ollama).

Requirements

  • Python 3.10+
  • Ollama running locally with the embedding model:
ollama pull quentinz/bge-small-zh-v1.5

Install

pip install skillsearch-mcp        # from PyPI (once published)
# or from source
git clone https://github.com/<you>/skillsearch-mcp.git
cd skillsearch-mcp && pip install -e .

Configuration

Environment variables:

Variable Default Description
SKILLSEARCH_SKILLS_DIR ~/skills Skill/knowledge root(s). Multiple dirs separated by ; (Windows) or : (Unix). Scanned recursively for SKILL.md files.
SKILLSEARCH_DB ~/.cache/skillsearch/vector_index.db Where the index lives. Rebuilds automatically when skills change (mtime-based).
OLLAMA_URL http://127.0.0.1:11434 Ollama endpoint.
EMBED_MODEL quentinz/bge-small-zh-v1.5 Embedding model. Any Ollama embedding model works, but index must be rebuilt after changing it (server does this automatically via meta check).

Client setup

Claude Code

claude mcp add skillsearch -- python -m skillsearch_mcp

or in .mcp.json:

{
  "mcpServers": {
    "skillsearch": {
      "command": "python",
      "args": ["-m", "skillsearch_mcp"],
      "env": { "SKILLSEARCH_SKILLS_DIR": "/path/to/skills" }
    }
  }
}

Codex

codex mcp add skillsearch -- python -m skillsearch_mcp

or ~/.codex/config.toml:

[mcp_servers.skillsearch]
command = "python"
args = ["-m", "skillsearch_mcp"]
env = { SKILLSEARCH_SKILLS_DIR = "/path/to/skills" }

Tools

skill_search(query, k=5)

Semantic search. Returns top-k matching skills with name, score, description, and absolute path. k is capped at 10.

skill_list()

List every indexed skill (name + description + path). Useful for exploration or for clients that want a full inventory.

Skill file format

Any directory containing SKILL.md files is indexed. A minimal example:

---
name: ffmpeg-video-batch-processing
description: ffmpeg video batch processing — watermark, compress, rename
---

# ffmpeg video batch processing
...full content...

name and description from the frontmatter are used for search. Files under .archive, .git, references, assets, templates, node_modules are skipped.

How indexing works

  • On first query the server scans SKILLSEARCH_SKILLS_DIR, embeds the first 512 chars of each skill, and stores vectors in SQLite (WAL).
  • On subsequent queries it only re-indexes files whose mtime changed (cheap update_index pass), and prunes deleted ones.
  • Query path: embed the query with the retrieval prefix, cosine-search the vector table, run 4-gram/2-gram substring scoring over name/description/ full_text, then fuse both rankings with RRF.

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