knowflow

knowflow

Connects documentation, GA4 search analytics, Jenkins CI pipeline, and RAGAS-style evaluation to Claude for content gap analysis and documentation improvements.

Category
访问服务器

README

knowflow

Documentation has always been a knowledge layer. knowflow makes it one that AI can actually reach.

knowflow is an MCP (Model Context Protocol) server built by an Information Architect who got tired of context-switching between four tools to answer one question: what are users not finding?

It connects your documentation corpus, GA4 search analytics, Jenkins CI pipeline, and a RAGAS-style evaluation layer to Claude — in a single conversation.

Claude Desktop / Claude Code
        │
        │  JSON-RPC over stdio
        ▼
   knowflow
        │
        ├── search_docs          → TF-IDF corpus search (upgradeable to pgvector / ChromaDB)
        ├── get_topic            → Full topic content by ID
        ├── list_topics          → Corpus index with product and type filters
        ├── get_content_gaps     → GA4 zero-result queries → ranked content gap list
        ├── get_build_status     → Jenkins publish pipeline status
        └── evaluate_pipeline    → RAGAS-style eval: relevance · faithfulness · recall

Why we built this

Every documentation team asks the same question: what should we write next?

The answer used to live in three or four separate places — search analytics in GA4, existing content in a docs site, topic hierarchy in a spreadsheet, build status in Jenkins. Getting from "what are users not finding?" to "here is a drafted topic" used to take hours of context-switching.

knowflow collapses that into a single conversation.

get_content_gaps          "47 users searched for X and got nothing"
       ↓
search_docs               "nearest existing topic: rpm-upgrade-8.0"
       ↓
get_topic                 "here is the full content as context"
       ↓
Claude drafts             the missing section in under two minutes
       ↓
evaluate_pipeline         "faithfulness: 0.91 · relevance: 0.87 · recall: 0.74"
       ↓
IA reviews → publishes → gap closes → loop repeats

The part that changed most isn't the speed. It's the signal. You now know what to write before a support ticket tells you.


What you can ask Claude once connected

"What are the top ten search queries from the last 30 days that returned no results?"

"Run evaluate_pipeline with report_format markdown — show me which queries are underperforming and why."

"Find every topic in the corpus that mentions the Tableau connector. Did the docs build pass today?"

"A user searched for 'silent RPM install' 47 times and got nothing. Find the nearest existing topic and draft the missing section."

"Which topics haven't been reviewed in over 90 days? Flag them as potential faithfulness risks."


Quick start

1. Clone and install

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

2. Connect to Claude Desktop

Open your Claude Desktop config:

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

Add this block:

{
  "mcpServers": {
    "knowflow": {
      "command": "node",
      "args": ["/absolute/path/to/knowflow/dist/index.js"]
    }
  }
}

Restart Claude Desktop. You should see knowflow in the tools list.

3. Connect to Claude Code

Drop a .mcp.json in your project root:

{
  "mcpServers": {
    "knowflow": {
      "command": "node",
      "args": ["../knowflow/dist/index.js"]
    }
  }
}

Tools

search_docs

Semantic search across the documentation corpus.

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

get_topic

Retrieve full Markdown content of a topic by ID.

topic_id  string  required  Topic ID from search_docs results

list_topics

Browse the corpus index with optional filters.

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

get_content_gaps

Surface search queries that returned zero or few results — content your users need but doesn't exist yet.

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

Returns each gap with gap_type (missing_content | low_discoverability), nearest existing topic, search volume, and recommended action.

get_build_status

Check Jenkins CI/CD publish pipeline status.

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

evaluate_pipeline

Run a RAGAS-style evaluation across the pipeline.

queries        string[]  optional  Test queries. Uses default set of 10 if omitted.
report_format  string    optional  summary | detailed | markdown  (default: summary)
Metric What it measures
Answer relevance Does retrieved content answer the query?
Faithfulness Are claims grounded in the source corpus?
Context recall Did retrieval surface the most useful content?

Architecture

Search

Ships with a lightweight TF-IDF engine — no external dependencies or API keys. To upgrade to embedding-based semantic search:

  1. Add chromadb or pgvector to package.json
  2. Run scripts/index_corpus.py to embed the corpus
  3. Swap scoreTopics() in src/lib/search.ts for a vector similarity query

Evaluation

src/lib/evaluator.ts uses deterministic heuristics as a RAGAS approximation — no LLM API calls required to run. Replace with the RAGAS Python library for production use with an LLM judge.

Live data

Ships with realistic mock data for GA4 and Jenkins. To connect live sources:

cp .env.example .env
# Fill in BIGQUERY_PROJECT_ID, JENKINS_URL, JENKINS_TOKEN

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


Project structure

knowflow/
├── src/
│   ├── index.ts                  # MCP server — tool registry and router
│   ├── tools/
│   │   ├── searchDocs.ts
│   │   ├── getTopic.ts
│   │   ├── listTopics.ts
│   │   ├── getContentGaps.ts
│   │   ├── getBuildStatus.ts
│   │   └── evaluatePipeline.ts   # RAGAS-style evaluation
│   ├── data/
│   │   └── corpus.ts             # Sample documentation topics
│   └── lib/
│       ├── search.ts             # TF-IDF search engine
│       └── evaluator.ts          # Evaluation engine
├── scripts/
│   └── ga4_export.sql            # BigQuery query for live GA4 export
├── .env.example
├── package.json
└── tsconfig.json

Upgrading to live data

What Status How to upgrade
Search TF-IDF (built-in) Swap for ChromaDB / pgvector
Content gaps Mock GA4 data Wire in BigQuery — see scripts/ga4_export.sql
Build status Mock Jenkins data Add JENKINS_URL + JENKINS_TOKEN to .env
Evaluation Deterministic heuristics Replace with RAGAS Python library

Tech stack

  • Runtime: Node.js 18+ / TypeScript
  • Protocol: @modelcontextprotocol/sdk
  • Search: TF-IDF → pgvector / ChromaDB
  • Evaluation: Deterministic RAGAS approximation → RAGAS Python
  • Analytics: Mock GA4 → BigQuery
  • CI: Mock Jenkins → Jenkins REST API

Related projects


Author

Bipin Pandey — Principal Information Architect
Building the knowledge layer that humans and AI systems both depend on.

Portfolio · LinkedIn · GitHub

推荐服务器

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

官方
精选