maxkb-knowledge-mcp
MaxKB ナレッジベース検索 MCP
MaxKB Admin API に基づく MCP サービスで、ユーザーの質問に応じてナレッジベースのセグメントを検索します。ベクトル検索、ハイブリッド検索、全量検索をサポートします。デフォルトの Top K は 10、検索モードはベクトル検索です。
デフォルトでは Streamable HTTP で提供されます:
MCP アドレス:
http://<主机>:8000/mcpヘルスチェック:
http://<主机>:8000/health
機能
ツール | 説明 |
| 質問に応じて関連セグメントを検索 |
| ナレッジベースを一覧表示 |
| 単一のナレッジベースを表示 |
| ナレッジベースのドキュメントを一覧表示 |
| ワークスペースを一覧表示 |
search_mode(ツールで指定しない場合は環境変数を使用、デフォルトはベクトル検索):
向量/向量检索/embedding混合/混合检索/blend全量/全量检索/keywordsauto:ハイブリッド検索 → ベクトル検索 → 全文検索、ヒットするまで
knowledge_ids を指定しない場合、現在のワークスペース内でベクトルモデルが設定されているすべてのナレッジベースを検索します。
Related MCP server: mcp-rag-assistant
環境変数
サンプルファイルをコピーして、実際の環境に合わせて変更してください:
cp .env.example .env変数 | デフォルト | 説明 |
| なし | MaxKB アドレス、例: |
| なし | ユーザー API キー;HTTP モードでは省略可能、クライアントの |
|
| デフォルトのワークスペース |
|
| 検索で返す件数、範囲 1-100 |
|
|
|
|
| 証明書を検証できない場合は |
|
| リクエストタイムアウト(秒) |
|
|
|
|
| HTTP リッスンアドレス |
|
| HTTP ポート |
|
| ローカルログディレクトリ |
|
| ログ保持日数、期限が切れると自動削除 |
search_knowledge を単一呼び出しする際に top_n または search_mode を渡すと、サーバー側のデフォルト値を上書きします。
ローカル起動
Python 3.10+ と uv が必要です。
cp .env.example .env
uv sync
uv run maxkb-mcp起動後:
MCP:
http://127.0.0.1:8000/mcpヘルスチェック:
http://127.0.0.1:8000/healthログファイル:
logs/mcp.log(日次ローテーション、デフォルトで 7 日間保持)
クライアント接続例:
{
"mcpServers": {
"maxkb-knowledge": {
"transport": "streamable_http",
"url": "http://127.0.0.1:8000/mcp",
"headers": {
"Authorization": "你的 MaxKB API Key"
},
"disabled": false
}
}
}Authorization は生のキーでも、Bearer <key> でも構いません。
stdio モードが必要な場合:
MCP_TRANSPORT=stdio uv run maxkb-mcpDocker イメージのビルド
Docker 20.10+ が必要です。
docker build -t maxkb-mcp:latest .国内ネットワークでは PyPI ミラーを指定することを推奨します:
docker build \
--build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple \
-t maxkb-mcp:latest .イメージレジストリへのプッシュ(任意):
docker tag maxkb-mcp:latest <registry>/<namespace>/maxkb-mcp:0.1.0
docker push <registry>/<namespace>/maxkb-mcp:0.1.0Docker デプロイ
docker-compose.yml はイメージをビルドせず、既存のイメージを使用して起動します。デプロイ前にローカルでビルドするか、レジストリからイメージをプルしてください。
cp .env.example .env
docker-compose up -d
docker-compose logs -f maxkb-mcpリモートイメージを使用する場合:
MAXKB_MCP_IMAGE=<registry>/<namespace>/maxkb-mcp:0.1.0 docker-compose up -d起動後:
MCP:
http://<主机>:8000/mcpヘルスチェック:
http://<主机>:8000/healthログディレクトリ:ホスト
./logs(コンテナ内/app/logs)
HTTPS リバースプロキシ経由後、クライアントの url を https://your-domain/mcp に変更します。
MaxKB がホストにデプロイされている場合、MAXKB_BASE_URL を http://host.docker.internal:<端口> に設定します。
サービス停止:
docker-compose downログ
すべての HTTP リクエストと MCP ツール呼び出しはローカルログに書き込まれ、Authorization はマスクされます。
ファイル:
{MAXKB_LOG_DIR}/mcp.log、毎日mcp.log.YYYY-MM-DDにローテーション起動時に期限切れファイルを一度クリーンアップし、その後 6 時間ごとにクリーンアップ
MAXKB_LOG_RETENTION_DAYS(デフォルト 7 日)を超えたログは削除されます
よくある質問
API キーが未提供:クライアントの
headers.Authorizationに MaxKB ユーザーキーを渡すか、.envでMAXKB_API_KEYを設定しますビルドが遅い、またはタイムアウト:パッケージング時に
--build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simpleを追加コンテナから MaxKB にアクセスできない:
MAXKB_BASE_URL、ネットワーク、host.docker.internalが必要かどうかを確認証明書検証の失敗:
MAXKB_VERIFY_SSL=falseを設定
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the Innovaas Knowledge Management System through MCP, providing multi-modal search, RAG-powered chat with intelligent token management, and document access.MIT
- FlicenseNot gradedqualityCmaintenanceProvides RAG-based knowledge retrieval and document management as MCP tools, supporting hybrid search, reranking, and retrieval process visualization.
- FlicenseNot gradedqualityCmaintenanceEnables querying company knowledge base using RAG, providing accurate answers from internal documents via MCP.
- AlicenseNot gradedqualityCmaintenanceEnables document ingestion, semantic search, and retrieval-augmented generation via MCP tools and REST API, using vector embeddings and intelligent chunking.MIT
Related MCP Connectors
Query any docs site via MCP. Submit a URL, ask questions, get cited answers.
Knowledge coverage map and health score. Ingest docs into a governed knowledge graph via MCP.
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/North-CS/maxkb-knowledge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server