OpenViking MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install openviking mcp
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "OPENVIKING_DATA_PATH=${OPENVIKING_DATA_PATH}" -e "OPENVIKING_CONFIG_FILE=${OPENVIKING_CONFIG_FILE}" openviking-mcp -- node "<FULL_PATH_TO_OPENVIKING_MCP>/dist/index.js"

Replace <FULL_PATH_TO_OPENVIKING_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:OPENVIKING_DATA_PATHOPENVIKING_CONFIG_FILE
README.md

Provides AI assistants with access to the OpenViking knowledge base.

OpenViking MCP

OpenViking MCP Server - 为AI助手提供OpenViking知识库访问能力

功能

  • 语义搜索 - 基于向量嵌入的智能检索
  • 文档读取 - 读取PDF、MD等文档内容
  • 模式匹配 - 使用glob模式搜索文件
  • 摘要/概览 - 获取L0摘要和L1概览
  • 全文搜索 - 关键字全文检索

快速开始

1. 安装依赖

pip install openviking mcp

2. 配置Ollama

确保Ollama服务运行中,并安装嵌入模型:

ollama serve
ollama pull qwen3-embedding:0.6b

3. 配置OpenCode

编辑 C:\Users\fenci\.config\opencode\opencode.json:

{
  "mcp": {
    "openviking": {
      "type": "local",
      "command": ["python", "path\\to\\openviking_mcp_server.py"],
      "environment": {
        "OPENVIKING_DATA_PATH": "path\\to\\viking_data",
        "OPENVIKING_CONFIG_FILE": "path\\to\\ov.conf"
      },
      "enabled": true,
      "timeout": 20000
    }
  }
}

4. 使用

在OpenCode中直接搜索:

使用 openviking 搜索"维斯塔斯接地"

项目结构

openviking-mcp/
├── openviking_mcp_server.py   # MCP服务器实现
├── OPENVIKING_MCP_MANUAL.md   # 详细文档
├── example_usage.py          # 使用示例
├── ov.conf                   # 配置文件示例
├── viking_data/              # 数据目录(可选)
└── docs/                     # 文档目录(可选)

可用工具

工具 功能
openviking_find 语义搜索
openviking_read 读取内容
openviking_glob 模式匹配
openviking_abstract L0摘要
openviking_overview L1概览
openviking_grep 全文搜索

文档

详细使用说明请参考 OPENVIKING_MCP_MANUAL.md

相关链接

版本

  • OpenViking: 0.1.17
  • MCP SDK: 1.25.0
  • Python: 3.13+

许可证

MIT License

Tools (6)

openviking_findPerforms semantic search based on vector embeddings.
openviking_readReads the content of documents like PDF or Markdown files.
openviking_globPerforms pattern matching to search for files.
openviking_abstractRetrieves L0 summaries for content.
openviking_overviewRetrieves L1 overviews for content.
openviking_grepPerforms keyword-based full-text search.

Environment Variables

OPENVIKING_DATA_PATHrequiredPath to the directory containing knowledge base data.
OPENVIKING_CONFIG_FILErequiredPath to the OpenViking configuration file.

Configuration

claude_desktop_config.json
{"mcp": {"openviking": {"type": "local", "command": ["python", "path\\to\\openviking_mcp_server.py"], "environment": {"OPENVIKING_DATA_PATH": "path\\to\\viking_data", "OPENVIKING_CONFIG_FILE": "path\\to\\ov.conf"}, "enabled": true, "timeout": 20000}}}

Try it

Search the knowledge base for 'project architecture guidelines'.
Read the document 'technical_spec.md' to summarize its key requirements.
Find all markdown files in the documentation folder using pattern matching.
Provide an L1 overview of the current project status.
Perform a full-text search for the term 'security protocol' across all documents.

Frequently Asked Questions

What are the key features of OpenViking MCP?

Semantic search using vector embeddings. Support for reading PDF and Markdown documents. Glob-based file pattern matching. L0 summary and L1 overview generation. Keyword-based full-text retrieval.

What can I use OpenViking MCP for?

Querying internal technical documentation using natural language. Summarizing large collections of project files for quick context. Locating specific files within a large knowledge base using pattern matching. Retrieving specific technical details from PDF manuals via full-text search.

How do I install OpenViking MCP?

Install OpenViking MCP by running: pip install openviking mcp

What MCP clients work with OpenViking MCP?

OpenViking MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep OpenViking MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare