Glanser Guidelines MCP Server
Glanser Guidelines MCP Server
チームのコーディングガイドラインコーパスに対するセマンティック検索。 FastMCP + ChromaDB + sentence-transformers (all-MiniLM-L6-v2) を使用。 100%無料 — APIキーや外部サービスは不要で、セットアップ後は完全にオフラインで動作します。
フォルダ構成
mcp-server/
├── server.py ← MCP server (run this on the host)
├── ingest.py ← One-time ingestion script
├── requirements.txt ← Python dependencies
├── documents/ ← Drop your .md guideline files here
│ └── CODING_GUIDELINES.md
└── chroma_db/ ← Created automatically by ingest.py (do not edit)Related MCP server: Code Memory
セットアップ(ホストマシンで一度だけ実行)
1. 依存関係のインストール
pip install -r requirements.txt
sentence-transformersは初回実行時にall-MiniLM-L6-v2モデル(約80MB)をダウンロードしてキャッシュします。2回目以降の実行は完全にオフラインです。
2. ドキュメントの追加
Markdownファイルを documents/ フォルダにコピーします:
cp /path/to/CODING_GUIDELINES.md documents/3. インジェスト(一度埋め込みを行い、ディスクに保存)
python ingest.pyこれにより、documents/ 内のすべての .md ファイルが読み込まれ、各セクションが埋め込まれ、ベクトルが chroma_db/ に永続化されます。この操作は、新しいドキュメントを追加したときのみ再実行してください。
便利なフラグ:
python ingest.py --file documents/NEW_DOC.md # add a single new doc
python ingest.py --reset # wipe and re-ingest everything
python ingest.py --list # see what is currently indexed4. サーバーの起動
python server.pyサーバーは http://0.0.0.0:8000 で起動します。
ホスティング(チームでのアクセス)
Railway または Render にデプロイします(どちらも無料枠があります):
この
mcp-server/フォルダをGitリポジトリにプッシュしますそのリポジトリを指す新しいサービスを作成します
起動コマンドを
python server.pyに設定します/app/chroma_dbに永続ボリュームをマウントします(デプロイ後も埋め込みデータを保持するため)デプロイ後、ホストのコンソールから一度だけ
python ingest.pyを実行します
Railway/Renderは、以下のようなHTTPS URLを自動的に提供します:
https://glanser-guidelines-mcp.railway.app
チームの .mcp.json への追加
各チームメンバーは、自身の .mcp.json に以下を追加します:
{
"mcpServers": {
"coding-guidelines": {
"type": "http",
"url": "https://your-hosted-domain.com/mcp"
}
}
}利用可能なツール
ツール | 説明 |
| すべてのドキュメントを対象としたセマンティック検索 — まずこれを使用してください |
| 特定のセクションの全文を取得 |
| コーパス全体のすべてのセクションタイトルを閲覧 |
|
|
| インデックス化されたすべてのドキュメントとセクション数を確認 |
新しいドキュメントの追加
# 1. Copy the new doc
cp NEW_GUIDELINES.md documents/
# 2. Ingest only the new file (does not re-embed existing docs)
python ingest.py --file documents/NEW_GUIDELINES.md
# 3. No server restart needed — ChromaDB is queried liveローカル開発 / テスト(ホスティングなし)
{
"mcpServers": {
"coding-guidelines": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP memory: save sessions/decisions once, search from Claude, Cursor, ChatGPT. EU-hosted FTS.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables semantic code search across local projects and Git repositories using AI embeddings with ChromaDB. Supports both OpenAI and local Ollama models for private, enterprise-ready code analysis and similar code discovery.44MIT
- AlicenseAqualityDmaintenanceMCP server with local vector search for your codebase. Smart indexing, semantic search, Git history — all offline.7121 PyPI49MIT
- AlicenseAqualityAmaintenanceLocal MCP server for semantic code search using Tree-sitter AST parsing, local embeddings, and hybrid search; enables indexing and querying codebases entirely offline.5MIT
- AlicenseNot gradedqualityBmaintenanceA local hybrid-search MCP server that enables coding agents to query files and folders using natural language, returning relevant code chunks with exact source paths. Everything runs on-device with no API keys or network calls.7MIT