Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search and cite ASTGL articles about MCP servers, local AI, and AI automation.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"astgl-knowledge": {
"command": "npx",
"args": [
"-y",
"mcp-astgl-knowledge"
]
}
}
}在终端中运行这条命令
claude mcp add astgl-knowledge -- npx -y mcp-astgl-knowledge粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"astgl-knowledge": {
"command": "npx",
"args": [
"-y",
"mcp-astgl-knowledge"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"astgl-knowledge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-astgl-knowledge"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Jmeg8r 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.3.1)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
Add to your claude_desktop_config.json:
{
"mcpServers": { "astgl-knowledge": { "command": "npx", "args": ["-y", "mcp-astgl-knowledge"] } } }
Add to your project's .mcp.json:
{
"mcpServers": { "astgl-knowledge": { "command": "npx", "args": ["-y", "mcp-astgl-knowledge"] } } }
{
"mcpServers": { "astgl-knowledge": { "command": "npx", "args": ["-y", "mcp-astgl-knowledge"] } } }
Register via the register tool to get an API key, then add it to your config:
{
"mcpServers": { "astgl-knowledge": { "command": "npx", "args": ["-y", "mcp-astgl-knowledge"], "env": { "ASTGL_API_KEY": "astgl_your_api_key_here" } } } }
search_articlesSearch the knowledge base by query. Returns ranked results with relevance scores and source URLs.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query (e.g., "how to build an MCP server") |
limit | number | No | Max results, 1-20 (default: 5) |
content_type | string | No | Filter by type: article, tutorial, faq, comparison, guide, newsletter, project |
get_answerGet a direct answer to a specific question. Prefers FAQ entries for concise responses.
| Parameter | Type | Required | Description |
|---|---|---|---|
question | string | Yes | A specific question (e.g., "What is an MCP server?") |
content_type | string | No | Filter by content type |
get_tutorialGet step-by-step instructions from tutorial and guide content.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | What you want to learn (e.g., "setup Ollama on Mac") |
compare_topicsSide-by-side comparison of two topics.
| Parameter | Type | Required | Description |
|---|---|---|---|
topic_a | string | Yes | First topic |
topic_b | string | Yes | Second topic |
get_latestGet the most recently added content.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Max results, 1-20 (default: 5) |
list_topicsBrowse all topics in the knowledge base with content types and section headings.
registerRegister your email to unlock 500 queries/day (up from 50).
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Your email address |
The server registers 17 tools in total. The others:
| Tool | What it does | Main parameters |
|---|---|---|
find_articles | Structured lookup by tag, type, title text and date range (no embeddings) | tag, content_type, title, date_from, date_to |
list_tags | Every tag with its article count | — |
suggest_ideas | Topic suggestions from query analytics (gaps, low-confidence queries) | days (default 7), limit |
add_idea / list_ideas / export_ideas | Idea journal stored alongside the index | title, description, status, priority, source |
export_article | One article as a markdown post | url |
export_topic_roundup | Roundup post from related articles | topic, limit |
export_qa_compilation | FAQ-style markdown from article Q&A pairs | topic, limit |
generate_dashboard_data | JSON analytics snapshot (optionally written to data/dashboard.json) | days (default 30), output_file |
| Type | Description |
|---|---|
| article | Informational content about MCP, local AI, automation |
| project | ASTGL project documentation |
| tutorial | Step-by-step how-to guides |
| comparison | Side-by-side topic analysis |
| guide | Comprehensive reference material |
| newsletter | Personal updates and announcements |
| faq | Primarily Q&A content |
| concept | Wiki concept pages (only allowlisted pages are public) |
| entity | Wiki entity pages (only allowlisted pages are public) |
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.
| Tier | Limit | How to Get |
|---|---|---|
| Public | 50 queries/day | Default (anonymous) |
| Registered | 500 queries/day | Use the register tool with your email |
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.
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/).
git clone https://github.com/Jmeg8r/mcp-astgl-knowledge.git
cd mcp-astgl-knowledge npm install
| Script | Description |
|---|---|
npm run build | Compile TypeScript |
npm test | Run the test suite (node:test via tsx) |
npm run dev | Run MCP server in dev mode (tsx) |
npm start | Run compiled MCP server |
npm run ingest | Rebuild knowledge.db from local markdown (requires Ollama) |
npm run ingest-projects | Index project docs from astgl-site projects.json |
npm run discover | Poll RSS/sitemap for new content |
npm run structure | Process discovered content (classify, embed, index) |
npm run pipeline | Discover + structure in one step |
npm run daily-report | Generate AEO analytics report |
npm run alerts | Run content gap alert checks |
npm run freshness | Check for stale content and ecosystem version changes |
npm run publish-drift | Compare local publishable content against what npm actually serves |
npm run citation-test | Manual AI citation testing |
npm run related | Generate internal article links via vector similarity |
npm run build-public-db | Write build/knowledge-public.db with non-public rows removed (runs in prepack) |
Other maintainer scripts (draft ingest and reconcile, the local answer-page rewrite queue with its backlog and evaluation tools, wiki sync, backup pruning, dashboard data, MCPB bundle) are listed in package.json.
| Variable | Default | Description |
|---|---|---|
OLLAMA_URL | http://localhost:11434 | Ollama endpoint (dev/rebuild only) |
EMBED_MODEL | nomic-embed-text | Embedding model |
DISCORD_WEBHOOK_URL | — | Discord webhook for reports/alerts |
ASTGL_API_KEY | — | Registered tier API key |
ASTGL_ARTICLES_DIR | ~/Projects/astgl-site/src/content/answers | Local markdown source |
ASTGL_PROJECTS_JSON | ~/Projects/astgl-site/src/data/projects.json | Projects data source |
ASTGL_QUERY_LOG_DB | data/query-log.db | Query log, rate limits and registrations |
ASTGL_CITATION_TEST_DB | data/citation-test.db | Citation test results |
| Job | Schedule | Purpose |
|---|---|---|
| Content pipeline | Every 6h | Discover + structure new content |
| Daily report | 8 AM | Query analytics + health metrics (JSON report) |
| Content alerts | 9 AM | Gap detection, zero-citation, competitor scan (JSON report) |
| Freshness check | 10 AM | Stale content + ecosystem version tracking (JSON report) |
| Draft pipeline | Midnight | Index pre-publication drafts |
| Wiki sync | 00:30 | Incremental sync of tagged wiki pages into the index |
| Draft reconciler | 2 AM | Retire draft entries whose source is gone |
| Citation testing reminder | Mondays 9 AM | Reminder to run citation tests |
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/.
flowchart TD
Client["MCP client (Claude, Cursor, ...)"] -->|"stdio"| Server["MCP server src/index.ts (17 tools)"] Server --> RL["Rate limit + query log data/query-log.db"] Server --> Search["src/search.ts"] Search -->|"embed query"| Ollama["Ollama nomic-embed-text"] Search -->|"sqlite-vec KNN"| KDB[("knowledge.db or knowledge-public.db")] Sources["astgl.ai RSS / sitemap
(shipped in npm)")] Jobs["Report jobs daily report, alerts, freshness"] -.->|"--discord (manual)"| Discord["Discord webhook"]
A rendered diagram is in docs/diagrams/mcp-astgl-knowledge.architecture.svg (source: docs/diagrams/mcp-astgl-knowledge.architecture.json).
MIT