docs-mcp

docs-mcp

Enables natural-language queries across Actian product documentation, GA4 content analytics, and Jenkins CI build status.

Category
访问服务器

README

docs-mcp

An MCP (Model Context Protocol) server that exposes Actian product documentation, GA4 content analytics, and Jenkins CI build status to Claude — enabling natural-language queries across all three sources in a single conversation.

Claude Desktop / Claude Code
        │
        │  JSON-RPC over stdio
        ▼
  docs-mcp
        │
        ├── search_docs      → Actian Markdown corpus (TF-IDF, swap for pgvector)
        ├── get_topic        → Full topic content by ID
        ├── list_topics      → Corpus index with product/type filters
        ├── get_content_gaps → GA4 zero-result search queries (mock → BigQuery)
        └── get_build_status → Jenkins publish pipeline status (mock → live API)

What this enables

Once connected, you can ask Claude:

"What are the top 10 search queries on the Actian docs site that returned no results this month?"

"Find every topic in the Analytics Engine 8.0 corpus that mentions the Tableau connector, and check whether the publish pipeline is currently green."

"Did the docs build pass? If it failed, search the corpus for the RPM upgrade procedure and show me the relevant steps."


Quick start

1. Clone and install

git clone https://github.com/Bipin-24/docs-mcp.git
cd docs-mcp
npm install
npm run build

2. Connect to Claude Desktop

Open your Claude Desktop config file:

OS Path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json

Add this block (replace the path with your actual clone location):

{
  "mcpServers": {
    "actian-docs": {
      "command": "node",
      "args": ["/absolute/path/to/docs-mcp/dist/index.js"]
    }
  }
}

Restart Claude Desktop. You should see actian-docs in the tools list.

3. Connect to Claude Code

Drop a .mcp.json file in your project root:

{
  "mcpServers": {
    "actian-docs": {
      "command": "node",
      "args": ["../docs-mcp/dist/index.js"]
    }
  }
}

Tools

search_docs

Semantic search across the documentation corpus.

Input:
  query    string  required  Natural language search query
  product  string  optional  analytics-engine | ingres | actian-client | all
  version  string  optional  e.g. "8.0", "11.x"
  limit    number  optional  1–10, default 5

Output: ranked list of matching topics with excerpt and relevance score

Example prompt: "How do I upgrade Analytics Engine using RPM packages?"


get_topic

Retrieve the full Markdown content of a topic by ID.

Input:
  topic_id  string  required  Topic ID from search_docs results

Output: full topic content with metadata

list_topics

Browse the corpus index.

Input:
  product     string  optional  analytics-engine | ingres | actian-client | all
  topic_type  string  optional  concept | task | reference | troubleshooting | all

Output: topics grouped by product

get_content_gaps

Surfaces search queries that returned zero or very few results — i.e. documentation your users need but that doesn't exist yet.

Input:
  days          number  optional  Lookback window, default 30
  limit         number  optional  Max gaps to return, default 20
  min_searches  number  optional  Minimum search volume, default 2

Output: ranked gap list with gap type, search volume, and nearest existing topics

Example prompt: "What are the top missing documentation topics based on search data from the last 30 days?"


get_build_status

Returns the current Jenkins CI pipeline status for the docs publish job.

Input:
  job  string  optional  Jenkins job name, default "actian-docs-publish"

Output: latest build result, stage breakdown, and recent history

Architecture

Search

The server ships with a lightweight TF-IDF keyword search engine (src/lib/search.ts) that requires no external dependencies or API keys. It scores documents using term frequency with title and tag match bonuses.

To upgrade to embedding-based semantic search:

  1. Add chromadb to package.json
  2. Run npm run index to embed the corpus using the Python indexer (scripts/index_corpus.py)
  3. Swap scoreTopics() in src/lib/search.ts for a Chroma similarity query

Live data

The server ships with realistic mock data for GA4 analytics and Jenkins. To switch to live sources, add credentials to .env:

cp .env.example .env
# Edit .env with your BigQuery project ID and Jenkins token

See .env.example for all available configuration options.

The BigQuery query for GA4 Site Search export is in scripts/ga4_export.sql.


Project structure

docs-mcp/
├── src/
│   ├── index.ts              # MCP server — tool registry and routing
│   ├── tools/
│   │   ├── searchDocs.ts     # search_docs handler
│   │   ├── getTopic.ts       # get_topic handler
│   │   ├── listTopics.ts     # list_topics handler
│   │   ├── getContentGaps.ts # get_content_gaps handler
│   │   └── getBuildStatus.ts # get_build_status handler
│   ├── data/
│   │   ├── corpus.ts         # Sample Actian documentation topics
│   │   ├── analyticsData.ts  # Mock GA4 site search data
│   │   └── jenkinsData.ts    # Mock Jenkins build history
│   └── lib/
│       └── search.ts         # TF-IDF search engine
├── scripts/
│   └── ga4_export.sql        # BigQuery query for real GA4 export
├── config/
│   ├── claude_desktop_config.json  # Claude Desktop setup
│   └── mcp.json                    # Claude Code project setup
├── .env.example
└── tsconfig.json

Tech stack

  • Runtime: Node.js 18+ / TypeScript
  • MCP SDK: @modelcontextprotocol/sdk
  • Search: TF-IDF (built-in) → upgradeable to pgvector / Chroma
  • Analytics: Mock GA4 data → upgradeable to BigQuery
  • CI status: Mock Jenkins data → upgradeable to live Jenkins REST API

Related projects


Author

Bipin Pandey — Principal Information Architect
LinkedIn · Portfolio

推荐服务器

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 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

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

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

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

官方
精选
TypeScript
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 模型以安全和受控的方式获取实时的网络信息。

官方
精选