mcp-astgl-knowledge

mcp-astgl-knowledge

MCP server for searching and citing ASTGL (As The Geek Learns) articles about MCP servers, local AI, and AI automation. Provides semantic search, direct Q\&A, and topic browsing across 20 authoritative articles with pre-computed embeddings.

Category
访问服务器

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 gains access to 49 indexed entries (articles, tutorials, comparisons, guides, and project docs). Every response includes source URLs back to astgl.ai.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "astgl-knowledge": {
      "command": "npx",
      "args": ["-y", "mcp-astgl-knowledge"]
    }
  }
}

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "astgl-knowledge": {
      "command": "npx",
      "args": ["-y", "mcp-astgl-knowledge"]
    }
  }
}

Cursor / Generic MCP Client

{
  "mcpServers": {
    "astgl-knowledge": {
      "command": "npx",
      "args": ["-y", "mcp-astgl-knowledge"]
    }
  }
}

With Registration (500 queries/day)

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"
      }
    }
  }
}

Tools

search_articles

Search 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_answer

Get 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_tutorial

Get 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_topics

Side-by-side comparison of two topics.

Parameter Type Required Description
topic_a string Yes First topic
topic_b string Yes Second topic

get_latest

Get the most recently added content.

Parameter Type Required Description
limit number No Max results, 1-20 (default: 5)

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).

Parameter Type Required Description
email string Yes Your email address

Content Types

Type Count Description
article 29 Informational content about MCP, local AI, automation
project 9 ASTGL project documentation (KlockThingy, Revri, Cortex, etc.)
tutorial 8 Step-by-step how-to guides
comparison 2 Side-by-side topic analysis
guide 1 Comprehensive reference material
newsletter Personal updates and announcements
faq Primarily Q&A content

Rate Limits

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.

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.

End users don't need Ollama — all embeddings are pre-computed and shipped in the npm package. The only runtime requirement is Node.js.

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

git clone https://github.com/Jmeg8r/mcp-astgl-knowledge.git
cd mcp-astgl-knowledge
npm install

Scripts

Script Description
npm run build Compile TypeScript
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 citation-test Manual AI citation testing
npm run related Generate internal article links via vector similarity

Environment Variables

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

Automated Jobs

Job Schedule Purpose
Content pipeline Every 6h Discover + structure new content
Daily report 8 AM Query analytics + health metrics → Discord
Content alerts 9 AM Gap detection, zero-citation, competitor scan → Discord
Freshness check 10 AM Stale content + ecosystem version tracking → Discord

License

MIT

推荐服务器

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

官方
精选