mcp-astgl-knowledge
mcp-astgl-knowledge
一个 MCP 服务器,允许 AI 助手搜索并引用 As The Geek Learns 的内容——涵盖 MCP 服务器、本地 AI、AI 自动化以及 ASTGL 项目文档。
当 AI 助手连接到此服务器时,它将获得对 49 个索引条目(文章、教程、比较、指南和项目文档)的访问权限。每条响应都包含指向 astgl.ai 的源 URL。
快速入门
Claude Desktop
添加到你的 claude_desktop_config.json:
{
"mcpServers": {
"astgl-knowledge": {
"command": "npx",
"args": ["-y", "mcp-astgl-knowledge"]
}
}
}Claude Code
添加到你项目的 .mcp.json:
{
"mcpServers": {
"astgl-knowledge": {
"command": "npx",
"args": ["-y", "mcp-astgl-knowledge"]
}
}
}Cursor / 通用 MCP 客户端
{
"mcpServers": {
"astgl-knowledge": {
"command": "npx",
"args": ["-y", "mcp-astgl-knowledge"]
}
}
}注册(500 次查询/天)
通过 register 工具注册以获取 API 密钥,然后将其添加到你的配置中:
{
"mcpServers": {
"astgl-knowledge": {
"command": "npx",
"args": ["-y", "mcp-astgl-knowledge"],
"env": {
"ASTGL_API_KEY": "astgl_your_api_key_here"
}
}
}
}Related MCP server: moss-brain
工具
search_articles
通过查询搜索知识库。返回带有相关性得分和源 URL 的排名结果。
参数 | 类型 | 必需 | 描述 |
| string | 是 | 搜索查询(例如,“如何构建 MCP 服务器”) |
| number | 否 | 最大结果数,1-20(默认:5) |
| string | 否 | 按类型过滤:article, tutorial, faq, comparison, guide, newsletter, project |
get_answer
获取特定问题的直接答案。优先使用 FAQ 条目以获得简洁的回答。
参数 | 类型 | 必需 | 描述 |
| string | 是 | 特定问题(例如,“什么是 MCP 服务器?”) |
| string | 否 | 按内容类型过滤 |
get_tutorial
从教程和指南内容中获取分步说明。
参数 | 类型 | 必需 | 描述 |
| string | 是 | 你想学习的内容(例如,“在 Mac 上设置 Ollama”) |
compare_topics
两个主题的并排比较。
参数 | 类型 | 必需 | 描述 |
| string | 是 | 第一个主题 |
| string | 是 | 第二个主题 |
get_latest
获取最近添加的内容。
参数 | 类型 | 必需 | 描述 |
| number | 否 | 最大结果数,1-20(默认:5) |
list_topics
浏览知识库中的所有主题,包括内容类型和章节标题。
register
注册你的电子邮件以解锁 500 次查询/天(从 50 次提升)。
参数 | 类型 | 必需 | 描述 |
| string | 是 | 你的电子邮件地址 |
内容类型
类型 | 数量 | 描述 |
article | 29 | 关于 MCP、本地 AI、自动化的信息性内容 |
project | 9 | ASTGL 项目文档 (KlockThingy, Revri, Cortex 等) |
tutorial | 8 | 分步操作指南 |
comparison | 2 | 主题并排分析 |
guide | 1 | 综合参考资料 |
newsletter | — | 个人更新和公告 |
faq | — | 主要为问答内容 |
速率限制
层级 | 限制 | 获取方式 |
公共 | 50 次查询/天 | 默认(匿名) |
已注册 | 500 次查询/天 | 使用 |
限制在 UTC 午夜重置。速率限制信息包含在每条响应中。
工作原理
知识库是使用语义嵌入(nomic-embed-text,768 维度)从 ASTGL 文章预先构建的。内容按章节和 FAQ 条目进行分块、嵌入,并存储在带有 sqlite-vec 的 SQLite 数据库中以进行向量相似度搜索。
最终用户不需要 Ollama —— 所有嵌入都是预先计算好的,并包含在 npm 包中。唯一的运行时要求是 Node.js。
性能
典型响应时间:100-500ms(嵌入查找 + 向量搜索)
嵌入结果缓存在内存中(LRU,200 个条目)——重复查询几乎是瞬时的
Ollama 调用包含 10 秒超时 + 自动重试
查询日志记录是异步/批处理的,以避免阻塞响应
速率限制检查缓存 5 秒
维护者指南
设置
git clone https://github.com/Jmeg8r/mcp-astgl-knowledge.git
cd mcp-astgl-knowledge
npm install脚本
脚本 | 描述 |
| 编译 TypeScript |
| 在开发模式下运行 MCP 服务器 (tsx) |
| 运行已编译的 MCP 服务器 |
| 从本地 markdown 重建 knowledge.db(需要 Ollama) |
| 从 astgl-site projects.json 索引项目文档 |
| 轮询 RSS/sitemap 以获取新内容 |
| 处理发现的内容(分类、嵌入、索引) |
| 一步完成发现 + 结构化 |
| 生成 AEO 分析报告 |
| 运行内容缺口警报检查 |
| 检查陈旧内容和生态系统版本变更 |
| 手动 AI 引用测试 |
| 通过向量相似度生成内部文章链接 |
环境变量
变量 | 默认值 | 描述 |
|
| Ollama 端点(仅限开发/重建) |
|
| 嵌入模型 |
| — | 用于报告/警报的 Discord Webhook |
| — | 已注册层级的 API 密钥 |
|
| 本地 markdown 源 |
|
| 项目数据源 |
自动化任务
任务 | 时间表 | 目的 |
内容流水线 | 每 6 小时 | 发现 + 结构化新内容 |
每日报告 | 上午 8 点 | 查询分析 + 健康指标 → Discord |
内容警报 | 上午 9 点 | 缺口检测、零引用、竞争对手扫描 → Discord |
新鲜度检查 | 上午 10 点 | 陈旧内容 + 生态系统版本跟踪 → Discord |
许可证
MIT
Available Tools
3 toolsget_answerC
Get a direct answer to a question about MCP servers, local AI, or AI automation from ASTGL's knowledge base. Returns the best matching answer with source URL and related articles.
Inputs: question (required).
list_topicsB
List all topics covered in the ASTGL knowledge base. Shows article titles, descriptions, URLs, and section headings.
Inputs: no named parameters.
search_articlesC
Search ASTGL articles about MCP servers, local AI, and AI automation. Returns relevant article sections with source URLs for citation.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_answer retrieves direct answers to specific questions, list_topics enumerates all available topics, and search_articles performs keyword-based searches. There is no overlap in functionality, making tool selection unambiguous for an agent.
All tool names follow a consistent verb_noun pattern (get_answer, list_topics, search_articles) with clear, descriptive verbs. The naming is uniform and predictable across the entire set.
Three tools is reasonable for a knowledge base server, covering core operations like querying, listing, and searching. It might feel slightly thin if advanced filtering or topic management were expected, but it's well-scoped for basic access.
The tools provide good coverage for accessing a knowledge base: retrieving answers, listing content, and searching. A minor gap is the lack of tools for updating or managing the knowledge base, but this is acceptable if the server is read-only.
Maintenance
Related MCP Connectors
MCP server for querying Forkast documentation
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.36 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides semantic memory with search, related-content traversal, and write-back capabilities, all powered by local embeddings of your notes, documents, and chat histories.2MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for querying a personal knowledge base using semantic RAG, powered by DeepSeek and local embeddings from Ollama.-
- AlicenseNot gradedqualityDmaintenanceMCP server that grounds AI answers in a local, maintained knowledge base and optionally fills gaps from the web, fully local with SQLite.AGPL 3.0