
ASTGL Knowledge
io.github.Jmeg8r由 GitHub 账号 Jmeg8r 发布v1.3.1更新于 Oct 25, 2026
Search and cite ASTGL articles about MCP servers, local AI, and AI automation.
概览
一个本地 MCP 服务器,让助手搜索、比较并引用 ASTGL 关于 MCP 服务器、本地 AI 与 AI 自动化的文章。
- 可以做什么
- 搜索 ASTGL 知识库,获得带来源链接的排序结果,或直接提问以获取基于常见问答条目的简明回答。获取分步教程与指南,并对两个主题做并排比较。按标签、内容类型、标题文字或日期范围浏览索引,列出主题、标签和最新内容。将文章、主题合集和问答汇编导出为 Markdown,并用查询分析生成的建议维护一个想法记录。
- 适用场景
- 当你希望助手围绕 MCP 服务器、本地 AI 部署或自动化问题,以 ASTGL 已发布的内容为依据作答并标注来源,而不是依赖通用知识时适用。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js。语义类工具(搜索、问答、教程、比较)还需要本地运行 Ollama 并提供 nomic-embed-text 模型;元数据类工具无需 Ollama。可选的 ASTGL_API_KEY 可提高每日查询上限。
安装
在 SourceWeft 中
- 打开 控制台中的 ASTGL Knowledge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-astgl-knowledge
An MCP server that lets AI assistants search and cite content from As The Geek Learns — covering MCP servers, local AI, AI automation, and ASTGL project documentation.
When an AI assistant connects to this server, it can search the indexed ASTGL entries (articles, tutorials, comparisons, guides, and project docs). Search results include source URLs back to astgl.ai.
Requirement: the semantic tools (
search_articles,get_answer,get_tutorial,compare_topics) embed your query at runtime with a local Ollama runningnomic-embed-text(defaulthttp://localhost:11434). The metadata tools (find_articles,list_tags,list_topics,get_latest) work without Ollama.
Quick Start
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Add to your project's .mcp.json:
Cursor / Generic MCP Client
With Registration (500 queries/day)
Register via the register tool to get an API key, then add it to your config:
Tools
search_articles
Search the knowledge base by query. Returns ranked results with relevance scores and source URLs.
get_answer
Get a direct answer to a specific question. Prefers FAQ entries for concise responses.
get_tutorial
Get step-by-step instructions from tutorial and guide content.
compare_topics
Side-by-side comparison of two topics.
get_latest
Get the most recently added content.
list_topics
Browse all topics in the knowledge base with content types and section headings.
register
Register your email to unlock 500 queries/day (up from 50).
More tools
The server registers 17 tools in total. The others:
Content Types
Counts change as content is added; call list_topics or list_tags for the current index.
draft and synthesis entries exist only in the maintainer database and are removed from the
published one. The content_type descriptions in the tool schemas list only the first seven types.
Rate Limits
Limits reset at midnight UTC. Rate limit info is included in every response.
Limits and registrations are enforced by the server process itself: usage and registrations are kept in a local SQLite file (data/query-log.db next to the package, or ASTGL_QUERY_LOG_DB), and anonymous clients get a persistent ID in ~/.astgl-client-id. An ASTGL_API_KEY only counts as registered if it exists in that local registrations table.
How It Works
The knowledge base is pre-built from ASTGL articles using semantic embeddings (nomic-embed-text, 768 dimensions). Content is chunked by section and FAQ entry, embedded, and stored in a SQLite database with sqlite-vec for vector similarity search.
Article embeddings are pre-computed and shipped in the npm package, so you never re-index content. Your query is still embedded at runtime through Ollama for the semantic tools (see the requirement above).
The server opens data/knowledge.db when it exists (a maintainer checkout) and otherwise build/knowledge-public.db. The npm package ships only build/knowledge-public.db, which npm run build-public-db produces by physically removing every non-public row (see docs/adr/).
Performance
- Typical response time: 100-500ms (embedding lookup + vector search)
- Embedding results are cached in memory (LRU, 200 entries) — repeated queries are near-instant
- Ollama calls include 10s timeout + automatic retry
- Query logging is async/batched to avoid blocking responses
- Rate limit checks are cached for 5 seconds
For Maintainers
Setup
Scripts
Other maintainer scripts (draft ingest and reconcile, rewrite queue, wiki sync, backup pruning, dashboard data, MCPB bundle) are listed in package.json.
Environment Variables
Automated Jobs
Schedules are defined in cron/*.json; the scheduled report jobs print JSON that an external scheduler picks up and delivers. Run the report scripts with --discord to post to DISCORD_WEBHOOK_URL instead. macOS launchd plists for the pipeline, draft and wiki jobs are in launchd/.
Architecture
A rendered diagram is in docs/diagrams/mcp-astgl-knowledge.architecture.svg
(source: docs/diagrams/mcp-astgl-knowledge.architecture.json).
License
MIT
来源:README.md,提交 262bc4c
工具
0版本历史
1- v1.3.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。