oarx-docs-mcp

oarx-docs-mcp

MCP server for semantic search across the complete ObjectARX 2026 documentation set. Indexes 89,715 text chunks from 22 guides in ChromaDB with hybrid BM25 + dense retrieval.

Category
访问服务器

README

Python 3.13+ MCP 1.0 ChromaDB License: MIT

oarx-docs-mcp

MCP server for semantic search across the complete ObjectARX 2026 documentation set. 89,715 text chunks from 22 guides indexed in ChromaDB with hybrid BM25 + dense retrieval.

Overview

oarx-docs-mcp indexes 89,715 text chunks from 22 documentation guides into a local ChromaDB vector database and exposes them through the Model Context Protocol (MCP) for use with Claude Code, Claude Desktop, or any MCP-compatible client.

Highlights

  • 3 MCP toolssearch_docs, lookup_class, list_guides
  • 89,715 indexed chunks from 22 documentation guides (ObjectARX SDK + Autodesk CloudHelp)
  • Hybrid retrieval — BM25 sparse + dense vectors + Reciprocal Rank Fusion
  • Cross-encoder reranking with BAAI/bge-reranker-v2-m3
  • Query optimization — AutoLISP detection, C++ API expansion, guide-specific boosting
  • Container-ready — Containerfile + compose.yaml (Podman/Docker)
  • Claude Code plugin — 4 skills + 2 slash commands for ObjectARX development

Data Sources

Source Guides Pages Description
ObjectARX SDK (CHM) 8 ~45,800 C++ Reference, .NET Reference, Developer Guides, Migration, Interop
Autodesk CloudHelp (web) 14 ~5,000 AutoLISP, ActiveX/VBA, JavaScript, DXF, Customization

MCP Tools

Tool Description
list_guides List all 22 available documentation guides
search_docs Semantic search with optional guide filter and result limit
lookup_class Look up a class or function by name (title match with semantic fallback)

Quick Start

# Clone and install
cd mcp/oarx-docs-mcp
uv sync

# Download web documentation (~5,000 pages)
OARX_DATA_DIR=./data uv run python -m oarx_docs_mcp.scraper

# Index CHM files from ObjectARX SDK (optional, requires 7-Zip)
OARX_DATA_DIR=./data OARX_CHM_DIR=/path/to/sdk/docs uv run python -m oarx_docs_mcp.indexer

# Or index web docs only (no SDK needed)
OARX_DATA_DIR=./data uv run python -m oarx_docs_mcp.indexer

Client Configuration

<details> <summary><b>Claude Code</b></summary>

Add to ~/.claude.json (or project-level .claude.json):

{
  "mcpServers": {
    "oarx-docs": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "/path/to/oarx-docs-mcp",
        "python", "-m", "oarx_docs_mcp"
      ],
      "env": {
        "OARX_DATA_DIR": "/path/to/oarx-docs-mcp/data"
      }
    }
  }
}

<details> <summary>Windows example</summary>

{
  "mcpServers": {
    "oarx-docs": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "C:/Users/user/oarx-docs-mcp",
        "python", "-m", "oarx_docs_mcp"
      ],
      "env": {
        "OARX_DATA_DIR": "C:/Users/user/oarx-docs-mcp/data"
      }
    }
  }
}

</details>

</details>

<details> <summary><b>Claude Desktop</b></summary>

Add to Claude Desktop's MCP configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "oarx-docs": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "/path/to/oarx-docs-mcp",
        "python", "-m", "oarx_docs_mcp"
      ],
      "env": {
        "OARX_DATA_DIR": "/path/to/oarx-docs-mcp/data"
      }
    }
  }
}

Restart Claude Desktop to pick up the new configuration.

</details>

<details> <summary><b>OpenAI Codex CLI</b></summary>

Add to ~/.codex/config.toml (global) or .codex/config.toml (project):

[mcp_servers.oarx-docs]
command = "uv"
args = ["run", "--directory", "/path/to/oarx-docs-mcp", "python", "-m", "oarx_docs_mcp"]

[mcp_servers.oarx-docs.env]
OARX_DATA_DIR = "/path/to/oarx-docs-mcp/data"

Or via CLI:

codex mcp add oarx-docs --env OARX_DATA_DIR=/path/to/data -- uv run --directory /path/to/oarx-docs-mcp python -m oarx_docs_mcp

</details>

Container Setup

# Build image
podman-compose build

# Download web docs
podman-compose --profile scraper run --rm scraper

# Index (requires OARX_CHM_DIR env var for CHM files)
OARX_CHM_DIR=/path/to/sdk/docs podman-compose --profile indexer run --rm indexer

# Run server
podman-compose up server

Configuration

All settings are configurable via environment variables:

Variable Default Description
OARX_CHM_DIR /docs Directory containing .chm files from ObjectARX SDK
OARX_DATA_DIR /app/data Data directory for ChromaDB and extracted HTML
OARX_EMBEDDING_MODEL BAAI/bge-m3 Sentence-transformers model name
OARX_CHUNK_SIZE 800 Text chunk size in characters
OARX_CHUNK_OVERLAP 200 Overlap between adjacent chunks
OARX_7Z_PATH auto-detect Path to 7z executable
OARX_DB_SOURCE github Database source: github, huggingface, or local
OARX_DB_VERSION 0.1.0 Database version to download
OARX_GITHUB_REPO dantte-lp/oarx-docs-mcp GitHub repository for release assets

Development

# Install with dev dependencies
uv sync --all-extras

# Run tests
uv run python -m pytest tests/ -v

# Lint
uv run ruff check src/ tests/

# Type check
uv run mypy

Tech Stack

Project Structure

oarx-docs-mcp/
├── src/oarx_docs_mcp/
│   ├── __main__.py          # Entry point
│   ├── config.py            # Settings + guide registries
│   ├── data_manager.py      # Database auto-download
│   ├── indexer.py           # CHM/HTML → ChromaDB
│   ├── retriever.py         # BM25 + dense + RRF + reranking
│   ├── scraper.py           # CloudHelp downloader
│   └── server.py            # MCP tools (3 tools)
├── tests/                   # pytest + pytest-asyncio
├── plugin/                  # Claude Code plugin
├── docs/
│   ├── en/                  # English documentation
│   └── ru/                  # Russian documentation
├── Containerfile            # OCI container image
└── compose.yaml             # Podman/Docker services

Documentation

Document EN RU
Architecture architecture.md architecture.md
Installation installation.md installation.md
Configuration configuration.md configuration.md
Usage usage.md usage.md
Troubleshooting troubleshooting.md troubleshooting.md
Changelog CHANGELOG.md
Contributing CONTRIBUTING.md CONTRIBUTING.RU.md

Contributing

See CONTRIBUTING.md (RU).

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选