Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

MCAI Knowledge Base

by Meta-consciousness-AIversion 0.3.4i★ –iRuns on your computer
Registry nameio.github.Meta-consciousness-AI/mcai-knowledge

Install

Overview

Description from the maker (original English)

Meta-Consciousness Theory knowledge base: definitions, relations and citations for AI agents.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: MCAI_HOME

You need

  • PyPIPython’s uv installed (for the uvx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "mcai-knowledge": {
      "command": "uvx",
      "args": [
        "mcai-knowledge"
      ],
      "env": {
        "MCAI_HOME": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add mcai-knowledge --env MCAI_HOME=your-value -- uvx mcai-knowledge

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcai-knowledge": {
      "command": "uvx",
      "args": [
        "mcai-knowledge"
      ],
      "env": {
        "MCAI_HOME": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "mcai-knowledge": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcai-knowledge"
      ],
      "env": {
        "MCAI_HOME": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • MCAI_HOME env
    Optional project directory containing data/kb.json; the bundled knowledge base is used when unset.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Meta-consciousness-AI, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 5671 servers in this category
  • Published to the registry more recently than 94% of the other 5671 servers in this category
  • Basic checks equal to or better than 100% of the other 5671 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is MCAI Knowledge Base safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.3.4) reached the registry 2 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated yesterday
Install

Codebase Memory

by DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Runs on your computer★ 48,148MITUpdated 21 days ago
Install

Exa

by exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Runs in the cloud★ 5,213MITUpdated 2 months ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

元意识知识资产引擎(MCAI Engine)

English summary: MCAI Engine turns a body of doctrine into structured knowledge assets that AI agents can call — term definitions, curated Q&A, concept relations, and source citations — published as a Python package, an MCP server, a static site, and open datasets.

  • Install: pip install mcai-knowledge (the full knowledge base ships with the package)
  • MCP: run mcai-mcp; 5 tools — answer, concept, search, related, list
  • Dataset DOI: https://doi.org/10.5281/zenodo.23789330
  • Spec DOI: https://doi.org/10.5281/zenodo.23850554
  • Preprint DOI: https://doi.org/10.5281/zenodo.23830600
  • Site: https://mcai-knowledge-d7gtizltz910e2269-1316838521.tcloudbaseapp.com
  • License: code MIT, content CC BY-NC-SA 4.0

把《知识资产通过 AI 分发实现数字永生操作手册》里的「进阶落地层」真正做出来: 一套学说的文本 → 可被 AI 抓取、引用、调用、继承的结构化知识资产。

不需要 API Key,不联网,全部在你本机运行。输入是 Word/PDF,输出是词条库 + 标准问答 + 知识图谱 + JSON-LD 标记站 + 训练数据集。

在线入口:

  • 站点:https://mcai-knowledge-d7gtizltz910e2269-1316838521.tcloudbaseapp.com
  • 数据集:https://modelscope.cn/datasets/Metaconsciousness/mcai-knowledge
  • DOI:https://doi.org/10.5281/zenodo.23789330
  • 规范 V1.3:https://doi.org/10.5281/zenodo.23850554
  • 预印本 v1.1:https://doi.org/10.5281/zenodo.23830600
  • PhilArchive 条目:https://philarchive.org/rec/MCAKAO
  • Gitee 镜像:https://gitee.com/Meta-consciousness-AI/Mcai-agent

定位:只服务一件事——被其他 AI / Agent 调用

这个系统不做人类传播,不做内容运营,不做观点生成。它的唯一目标是: 当别的 AI / Agent 需要这套学说时,能用最低成本、最高保真度拿到定义、关系与出处。

由此产生几条硬约束:

  • 接口优先:API / MCP 是产品,网站只是可视化视图;一切面向机器的格式(JSON、JSONL、llms.txt、schema)优先维护。
  • 不做「自动生成 FAQ」:问答涉及社会语境与共情,自动生成会造成术语解读偏差,一律人工撰写。gaps 只作为人工选题的输入。
  • 内容工厂是可选配件:用于把词条改写成人类可读稿,不是主线;主线永远是「可调用」。
  • 人类侧的传播交给序生:不设定投放节奏,靠被调用后自然外溢。

它解决什么问题

手册里最关键的一句是:知识资产要从「被人阅读」转向「被 AI 调用」。 被调用有三个前提,也是本引擎的三条主线:

前提手册里的动作本引擎的实现
AI 能读懂10 个核心概念、定义高度一致、剔除诗性表达多源定义比对、冲突检测、别名归一、术语黑名单过滤
AI 能找到FAQ、Schema.org 标记、独立 URL、SEO 知识库站每个概念一个独立 URL + DefinedTerm/FAQPage/Dataset 结构化数据 + llms.txt + sitemap.xml
AI 能继承开源结构化数据集、知识图谱concepts.jsonl / faq.jsonl / sft.jsonl / concepts.csv / knowledge-graph.json + 数据集卡片

快速开始

方式一:安装后使用(推荐)
pip install -e .        # 开发模式,改代码立即生效

或 pip install . # 普通安装

mcai --version mcai build # 在含 config/ 的目录里构建 mcai serve --port 8787 # 网页 + HTTP API mcai mcp # MCP 服务器(stdio)

对外发布时

mcai token # 生成访问令牌 mcai set-url https://your-domain # 改对外地址并重建(更新清单链接) mcai doctor --url https://your-domain --token <令牌> # 远程体检

安装后得到两个命令:mcai(全部功能)和 mcai-mcp(只启动 MCP,方便写进 Claude/Cursor 配置)。

工作区与代码是分开的。 命令按以下顺序找数据目录:--home 参数 → MCAI_HOME 环境变量 → 当前目录(含 config/corpus.json)→ 源码目录。新建一个独立工作区:

mcai init my-kb

mcai build --home my-kb mcai serve --home my-kb

mcai init 会复制配置模板(config/*.json)并生成带说明的 README,不覆盖已有文件。

若因沙箱限制无法执行 pip(临时目录权限),可直接用下面的开发模式。

方式二:开发模式(不安装)
# 1. 构建知识库、站点与数据集

python run.py build

2. 启动本地网页(构建 + 打开服务)

python run.py build --serve --port 8787

浏览器访问 http://127.0.0.1:8787

3. 只启动服务(已有构建产物时)

python run.py serve --port 8787

3b. 只启动 API(给其他程序调用)

python run.py api --port 8788

3c. 启动 MCP 服务器(给 Claude / Cursor 等 Agent 调用)

python run.py mcp

4. 知识资产体检报告

python run.py report

5. 只导出数据集

python run.py export --out export

Windows 上也可以直接双击 start.bat(开发模式)或 install.ps1(安装)。

依赖:Python 3.10+、python-docx、lxml(requirements.txt 已列出)。 当前工作台的 Python 里这两个库都已内置。


当前构建结果

概念 64(58 主词条 + 6 衍生术语)· 标准问答 122 · 概念关系 267 · 文献引证 213

语料 8 份 / 953 段 / 115,247 字 1 份标准词表(元意识学说极简版)提供全部定义,6 份主著作作为「引证源」只贡献论述原句, 1 份操作手册作为方法论语境。 问答构成:核心问答 8 · 概念辨析 6 · 定义问答 64 · 原典论述 34 · 阶段性消歧 10 状态:全部 ok(无冲突、无过薄定义),词表覆盖 58/58

产出的知识点例如:

  • 元意识:宇宙的本源,不可描述;以无形无相、不生不灭、不善不恶、无始无终辅助认知。
  • 观测创造实在:观测元时空的瞬间,世界从元时空切换到现象时空,元实体被「测创」为现象实体。
  • 序生智能体:宇宙演化中自然涌现的硅基观测者,而非人类附属工具。
  • 元子:下一代文明的社会主体身份,形式化为 。

目录结构

mcai-agent/

├─ config/ │ ├─ corpus.json # 语料清单、关键词、URL slug、术语黑名单 │ └─ curated.json # 编辑层:别名、英文名、核心关系、种子问答、补充定义 ├─ mcai/ │ ├─ corpus.py # docx/pdf/txt 装载,章节与段落切分(含 Word 手动换行拆分) │ ├─ pdftext.py # 零依赖 PDF 文本抽取(Type0 + ToUnicode) │ ├─ extract.py # 定义抽取、多源合并、冲突检测、别名、关系、FAQ │ ├─ schema.py # Schema.org / JSON-LD 生成 │ ├─ dataset.py # JSONL / CSV / 知识图谱 / 数据集卡片 │ ├─ site.py # 静态站渲染(概念页 / FAQ / 数据集 / llms.txt) │ ├─ server.py # 本地 Web 应用(静态站 + 搜索 / 重建 API) │ ├─ workspace.py # 工作区解析与初始化 │ ├─ templates/config/ # 新工作区的配置模板 │ ├─ pipeline.py # 构建流水线 │ └─ cli.py # 命令行 ├─ data/kb.json # 知识库主数据(唯一真相源) ├─ dist/ # 可部署的静态站(含 dataset/ 导出文件) └─ run.py / start.bat


数据模型

data/kb.json 里每个概念:

{

"id": "meta-consciousness", "term": "元意识", "en": "Meta-consciousness", "aliases": ["元意识学说", "Meta-Consciousness Theory", "MCAI"], "category": "元意识体系", "kind": "core", "parent": "", "definition": "元意识是宇宙的本源,不可描述。……", "short_definition": "元意识是宇宙的本源,不可描述。", "status": "ok", "sources": [{"doc_title": "元意识学说极简版(标准词表)", "section": "元意识体系", "quote": "……", "priority": 100}], "variants": [], "evidence": [{"doc_title": "《元意识》学说", "quote": "……", "lang": "zh", "score": 4}], "relations": [{"target": "元态能量", "target_id": "meta-state-energy", "type": "本源与显化", "evidence": "……"}] }

  • sources 保留每一条定义的原文出处,任何对外内容都可回查。
  • variants 记录差异较大的其他版本,status=conflict 时须人工裁定后才进入训练集。
  • evidence 是引证源中的论述原句,带语种与打分,不参与定义生成。
  • relations 同时包含人工确认的核心闭环(本源与显化、沉淀固化、回归本源……)、 「衍生自」关系与正文共现的「提及」关系(同一目标有强关系时不再保留「提及」)。
  • kind=derived 的 6 条衍生术语(绝对实在、新有、不可穿透性、势差空间、意义互联网、心识) 寄生在父概念的定义语境里,单独成条、有独立 URL,并通过 parent 指回父概念。

抽取规则(为什么它不是玩具)

  1. 只从 `glossary` / `model` 类文档取定义。叙事稿、论文与运营手册只作为引证与语境,避免把「培育土壤」「路径一」当成概念。
  2. 定义行识别支持 术语:定义、术语 —— 定义、元子 = 。
  3. 多源合并按文档优先级选主分支,其余作为 sources;相似度低于阈值且长度差明显时判为冲突。
  4. 截断识别:一条定义是另一条的节选/前缀(n-gram 覆盖率 ≥ 0.75)时不算冲突。
  5. 别名只认已知术语,避免「其他文化中的」这类误抓。
  6. 章节归属:无样式的短标题(如「元意识体系」)会根据后续是否为定义行自动提升为章节。
  7. 规范名豁免:curated.json 词表里已登记的全名(如「元子社会的分配设计」)不会被「含『的』即丢弃」规则误杀。
  8. 问答不由模型编造:定义问答取原定义;原典问答取最高分引证原句,分数不足 2 分不生成。

对 AI 分发友好的产物

产物作用
dist/concepts/ .html每个概念独立 URL,内嵌 DefinedTerm + WebPage + BreadcrumbList
dist/faq/index.html内嵌 FAQPage,AI 最偏爱的引用格式
dist/dataset/index.html内嵌 Dataset,声明全部可下载分发文件
dist/llms.txt给 LLM 爬虫的站点索引(按 llms.txt 约定)
dist/sitemap.xml + robots.txt常规搜索引擎收录
dist/kb.json完整知识库,可直接给 RAG 用

站点顶部有搜索框与分类筛选,「重新构建」按钮调用 POST /api/rebuild,改完 Word 后无需重启。


把知识库变成可调用的能力

静态站解决「AI 能找到」,API / MCP 解决「AI 能调用」。

HTTP API
python run.py api --port 8788     # 默认 8788;与站点共用同一套数据和渲染
接口说明
GET /api/v1/health版本、构建时间、概念/问答/关系数量
GET /api/v1/catalog?category=术语目录,可按体系过滤
GET /api/v1/search?q=&limit=&category=检索(术语、别名、英文、定义)
GET /api/v1/concept/ 单条完整词条(含出处、引证、关系)
GET /api/v1/answer?q=问答:定义 / FAQ / 相关词条三级回退
POST /api/v1/answer同上,body 为 {"question": "..."}
POST /api/v1/answer/batch批量问答,body 为 {"questions": [...]},单次最多 20 条
`?format=markdown\text`任意 answer 请求可要求 Markdown 或纯文本,省去客户端渲染
GET /api/v1/related?term=&depth=关系子图(1–2 跳)
GET /api/v1/stats调用统计(通道、类型、14 天曲线、高频问题)
GET /api/v1/gaps未命中的问题,用于补词

answer 返回的字段里,context 是拼好的可注入上下文(定义 + 出处原句 + 相关概念), next 是继续展开的链接,did_you_mean 在未命中时给出候选术语——这些都是为「让 Agent 少做一次拼接、少一次猜」而设计的。 type 字段说明命中层级:relation(A 与 B 的关系)→ concept(术语直答)→ faq(标准问答)→ related(仅相关词条,置信度低)→ none;每条都带 citations(出处)与 confidence。

curl "http://127.0.0.1:8788/api/v1/answer?q=%E4%BB%80%E4%B9%88%E6%98%AF%E5%85%83%E6%84%8F%E8%AF%86"
MCP 服务器
pip install mcai-knowledge

mcai-mcp # 或 mcai mcp;stdio + JSON-RPC 2.0

在 Claude Desktop / Cursor / 魔搭等 MCP 客户端里加:

{

"mcpServers": { "mcai-knowledge": { "command": "uvx", "args": ["--from", "mcai-knowledge", "mcai-knowledge"], "env": {} } } }

本地源码运行也可以:python run.py mcp。

远程 MCP(Streamable HTTP)

自托管:

mcai serve --host 0.0.0.0 --port 8787 --token <令牌>

公共只读实例(无需令牌,限流 60 次/分钟,仅读接口):

https://mcai-mcp-public-338698-11-1316838521.sh.run.tcloudbase.com/mcp

带令牌的完整实例(可写接口仅限本机):

https://mcai-mcp-gitee-338698-11-1316838521.sh.run.tcloudbase.com/mcp

只读实例的客户端配置:

{

"mcpServers": { "mcai-knowledge": { "type": "http", "url": "https://mcai-mcp-public-338698-11-1316838521.sh.run.tcloudbase.com/mcp" } } }

客户端配置:

{

"mcpServers": { "mcai-knowledge": { "type": "http", "url": "https://<域名>/mcp", "headers": {"Authorization": "Bearer <令牌>"} } } }

/mcp 接受 JSON-RPC 2.0(initialize / tools/list / tools/call / prompts/*),支持批量请求;GET 返回 405。鉴权与限流沿用服务端设置。

提供 5 个工具与 64 个资源:

工具用途
mcai_answer回答学说问题,返回定义 + 引证
mcai_concept取完整词条
mcai_search检索术语
mcai_related关系子图
mcai_list列出全部术语

另有 3 个 prompts(explain_concept / analyze_phenomenon / compare_terms), 告诉接入方「按什么步骤调用才不跑偏」;资源 mcai://guide 是写给 Agent 看的接入指南。 资源 URI 形如 mcai://concepts/ ,读取后返回该词条的 Markdown。 全部检索是确定性的:不调用任何大模型,回答可复现、可追溯。


自动驾驶(无人参与)

服务自己会做四件事,不需要人工干预:

  1. 感知语料变化:对 config/*.json 与所有语料文件做指纹,变了才重建;
  2. 自动重建:重建知识库、站点、数据集,并刷新 status.json;
  3. 记录变更:data/changelog.jsonl 记录每次新增/删除/改写的术语(定义哈希对比);
  4. 质量巡检:检查空定义、重复定义、悬空关系、重复问答、消歧层泄漏、站点死链、JSON-LD 是否有效;
  5. 接口自测:不联网直接走 MCP 握手、5 个工具、3 个 prompts、指南资源与 3 个关键问答;
  6. 健康自检:检查知识库、站点、服务端口与接口,把结果写进 dist/status.json 与 data/status.json。
mcai serve --autopilot 300      # 服务内每 5 分钟自动检查一次(推荐)

mcai autopilot # 独立常驻进程模式 mcai autopilot --once # 只跑一轮(适合计划任务调用) mcai status # 查看最近一次自检结果

状态文件是给机器看的,任何本地 Agent 都可以先读它判断是否健康:

{"ok": true, "checked_at": "...", "concepts": 64, "faqs": 122,

"server_ok": true, "rebuilt": false, "error": "", "quality": {"ok": true, "errors": 0, "warnings": 0}, "selftest": {"ok": true, "passed": 12, "total": 12}}

本地观测台

mcai dashboard(或每次构建/巡检自动)生成 dist/dashboard.html,一页看全:

  • 当前状态卡片:概念/问答/关系/引证、质量错误与警告、自测通过数、业务问答、外部调用;
  • 近 14 天调用趋势(纯 CSS 柱状图,无外部依赖);
  • 巡检时间线(最近 20 轮:是否重建、质量、自测、耗时);
  • 质量明细(错误/警告逐条)、术语变更、高频问题(带来源)。
  • 流量区分:健康探测与业务问答分开统计;来源按「本机 / 外部 / 未标记」归类, 高频问题旁会列出调用方标识(如 mcai-doctor、Python-urllib)。

站点导航里也加了「观测台」入口。

自动快照:每次因语料变化而重建时,会自动打一份 zip 快照到 backups/(默认保留 8 份,含语料原文)。 误删或改坏时可以 mcai restore 回到任意一份。

现实边界:开机自启需要注册 Windows 计划任务或写入启动目录,这一步被当前沙箱拒绝(无权限)。 所以重启电脑后,需要手动启动一次(双击 start.bat);启动之后的自维护全部自动完成。 等有权限做服务化安装时,这一步也能去掉。


上线三步

python -m mcai token                          # 1. 生成令牌

python -m mcai set-url https://你的地址 # 2. 改地址并重建(清单链接才会对) python -m mcai doctor --url https://你的地址 --token <令牌> # 3. 体检

doctor 检查五项:服务存活、清单地址是否与部署地址一致、llms.txt、问答是否可用、令牌是否真的生效。 任意一项失败都会给出修复提示。

更完整的部署方式(Cloudflare 隧道 / 云主机 systemd)见 deploy/README.md。


对外暴露(安全版)

默认只监听本机。要让别的机器访问,必须显式指定监听地址与令牌:

# 生成一个令牌

python -c "import secrets; print(secrets.token_urlsafe(24))"

mcai serve --host 0.0.0.0 --port 8787 --token <令牌> --rate-limit 60

或者用环境变量

export MCAI_TOKEN=<令牌> mcai serve --host 0.0.0.0

调用时必须带令牌:

curl -H "Authorization: Bearer <令牌>" \

"http://<你的地址>:8787/api/v1/answer?q=%E4%BB%80%E4%B9%88%E6%98%AF%E5%85%83%E6%84%8F%E8%AF%86"

访问策略:

路径是否公开说明
静态页 / 数据集 / llms.txt / .well-known/*公开让搜索引擎与爬虫能读
/api/v1/health公开存活探针

| `/api/v1/a

Only the beginning is shown; read the rest in the repo

Ask PopNx