Skip to main content
Glama
mcp-astgl-knowledge

mcp-astgl-knowledge

by Jmeg8r

mcp-astgl-knowledge

AIアシスタントが As The Geek Learns のコンテンツ(MCPサーバー、ローカルAI、AI自動化、ASTGLプロジェクトドキュメントなど)を検索・引用できるようにするMCPサーバーです。

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

登録(1日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を含むランク付けされた結果を返します。

パラメータ

型

必須

説明

query

string

はい

検索クエリ(例: "how to build an MCP server")

limit

number

いいえ

最大結果数、1〜20(デフォルト: 5)

content_type

string

いいえ

タイプでフィルタリング: article, tutorial, faq, comparison, guide, newsletter, project

get_answer

特定の質問に対する直接的な回答を取得します。簡潔な回答のためにFAQエントリを優先します。

パラメータ

型

必須

説明

question

string

はい

特定の質問(例: "What is an MCP server?")

content_type

string

いいえ

コンテンツタイプでフィルタリング

get_tutorial

チュートリアルやガイドのコンテンツからステップバイステップの手順を取得します。

パラメータ

型

必須

説明

query

string

はい

学習したい内容(例: "setup Ollama on Mac")

compare_topics

2つのトピックを並べて比較します。

パラメータ

型

必須

説明

topic_a

string

はい

最初のトピック

topic_b

string

はい

2番目のトピック

get_latest

最近追加されたコンテンツを取得します。

パラメータ

型

必須

説明

limit

number

いいえ

最大結果数、1〜20(デフォルト: 5)

list_topics

コンテンツタイプとセクション見出しを含む、ナレッジベース内のすべてのトピックを閲覧します。

register

メールアドレスを登録して、1日500クエリ(50から増加)をアンロックします。

パラメータ

型

必須

説明

email

string

はい

メールアドレス

コンテンツタイプ

タイプ

数

説明

article

29

MCP、ローカルAI、自動化に関する情報コンテンツ

project

9

ASTGLプロジェクトドキュメント (KlockThingy, Revri, Cortexなど)

tutorial

8

ステップバイステップのハウツーガイド

comparison

2

トピックの並列分析

guide

1

包括的なリファレンス資料

newsletter

—

個人のアップデートや告知

faq

—

主にQ&Aコンテンツ

レート制限

ティア

制限

取得方法

パブリック

1日50クエリ

デフォルト(匿名)

登録済み

1日500クエリ

メールアドレスで register ツールを使用

制限は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

スクリプト

スクリプト

説明

npm run build

TypeScriptのコンパイル

npm run dev

開発モードでMCPサーバーを実行 (tsx)

npm start

コンパイル済みMCPサーバーを実行

npm run ingest

ローカルのマークダウンから knowledge.db を再構築 (Ollamaが必要)

npm run ingest-projects

astgl-site の projects.json からプロジェクトドキュメントをインデックス化

npm run discover

RSS/サイトマップをポーリングして新しいコンテンツを確認

npm run structure

発見されたコンテンツを処理 (分類、埋め込み、インデックス化)

npm run pipeline

発見と構造化を1ステップで実行

npm run daily-report

AEO分析レポートを生成

npm run alerts

コンテンツギャップアラートチェックを実行

npm run freshness

古いコンテンツとエコシステムのバージョン変更を確認

npm run citation-test

手動AI引用テスト

npm run related

ベクトル類似性を通じて内部記事リンクを生成

環境変数

変数

デフォルト

説明

OLLAMA_URL

http://localhost:11434

Ollamaエンドポイント (開発/再構築のみ)

EMBED_MODEL

nomic-embed-text

埋め込みモデル

DISCORD_WEBHOOK_URL

—

レポート/アラート用のDiscord Webhook

ASTGL_API_KEY

—

登録済みティアのAPIキー

ASTGL_ARTICLES_DIR

~/Projects/astgl-site/src/content/answers

ローカルマークダウンソース

ASTGL_PROJECTS_JSON

~/Projects/astgl-site/src/data/projects.json

プロジェクトデータソース

自動ジョブ

ジョブ

スケジュール

目的

コンテンツパイプライン

6時間ごと

新しいコンテンツの発見 + 構造化

日次レポート

午前8時

クエリ分析 + ヘルス指標 → Discord

コンテンツアラート

午前9時

ギャップ検出、引用ゼロ、競合スキャン → Discord

新鮮度チェック

午前10時

古いコンテンツ + エコシステムのバージョン追跡 → Discord

ライセンス

MIT

Available Tools

3 tools
get_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

    B3.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Local-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.
      3
      6 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP 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.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP 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