pythia-mcp
Enables querying a wiki-query bot knowledge base through Discord by creating threads, posting questions, and aggregating answers from an existing question-answering bot.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pythia-mcpAsk the wiki: what's the process for onboarding a new intern?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pythia-mcp
讓任何支援 MCP 的 agent(Claude Code、Cursor、自製 agent…)透過 Discord 查詢 wiki-query bot 知識庫。
Discord 是唯一傳輸層 — 不開放任何自架對外端點,也不修改現有的問答 bot。pythia-mcp 以自己的 Discord bot 身分(courier)在指定頻道開 thread 發問,輪詢收集問答 bot(oracle)的回答後組合回傳。
Consumer agent ──MCP(stdio)── pythia-mcp ──Discord REST── oracle bot(不修改)詳細需求見 REQUIREMENTS.md。
MCP 工具
工具 | 說明 |
| 開 thread 向知識庫提問,等待並組合回答(單次約 10–60 秒) |
| 唯讀健檢:連線、guild/頻道可達、oracle 成員、頻道權限 |
| 列出當前問答討論串(進行中 + 最近封存) |
| 讀取指定討論串完整問答,標註 courier / oracle / other 角色 |
Related MCP server: mcp-sofa
安裝
需求:Node.js 18+。
git clone https://github.com/HsYihung/pythia-mcp.git
cd pythia-mcp
npm install
npm run buildDiscord 端準備(一次性)
在 Discord Developer Portal 建立一個 application 與 bot,作為 courier 身分,取得 bot token。
在 Bot 設定頁開啟 Message Content Intent(否則讀不到回答內容)。
邀請 bot 進目標伺服器,並在發問頻道給它五項權限(不需要任何管理權限):
View Channel
Send Messages
Create Public Threads
Read Message History
Send Messages in Threads
記下三個 ID(Discord 開發者模式右鍵複製):伺服器 guild ID、發問頻道 ID、問答 bot 的 user ID。
接入 consumer 專案
把 courier bot token 放進系統環境變數:
export PYTHIA_COURIER_TOKEN="你的-bot-token"複製 .mcp.json.example 到 consumer 專案根目錄,改名為
.mcp.json,填入實際值:{ "mcpServers": { "pythia": { "command": "node", "args": ["/absolute/path/to/pythia-mcp/dist/index.js"], "env": { "PYTHIA_COURIER_TOKEN": "${PYTHIA_COURIER_TOKEN}", "PYTHIA_GUILD_ID": "在哪個伺服器發問", "PYTHIA_ORACLE_CHANNEL_ID": "發問頻道 ID", "PYTHIA_ORACLE_BOT_ID": "問答 bot 的 user ID" } } } }token 一律用
${PYTHIA_COURIER_TOKEN}引用環境變數,不要明文寫進.mcp.json(${VAR}展開是 Claude Code 的行為;其他 MCP client 若不支援,可改由啟動環境直接繼承該變數)。重啟 MCP client 後先呼叫
wiki_status確認五項檢查全綠,再用wiki_ask提問。
選填參數
環境變數 | 預設 | 說明 |
| 10 | 收到第一則回覆後,靜默超過此秒數視為回答結束 |
| 180 | 單一問題總逾時(含 bot 思考時間) |
| 2 | REST 輪詢間隔 |
| pythia | thread 命名前綴,便於人工辨識與稽核 |
| 60 | thread 自動封存時間 |
啟動時會驗證所有設定與權限,任何缺漏都會直接報出可行動的錯誤訊息(缺哪個變數、缺什麼權限、哪個 ID 錯)。
開發
npm test # vitest,46 個測試,全部離線(fake client + 虛擬時鐘)
npm run build # tsc → dist/
npm run dev # tsx 直接跑 src/index.ts已知限制(設計取捨)
單次問答延遲約 10–60 秒(oracle agent 推理時間),consumer 端 MCP 工具逾時需設寬。
靜默判定可能在 oracle 分段極慢時提早收單,可用
PYTHIA_SILENCE_TIMEOUT_SECONDS調整。高並發場景不適用(Discord rate limit);定位是低頻、高價值的知識查詢。
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
- FlicenseBqualityCmaintenanceA MCP server that allows you to search and retrieve content on any wiki site using MediaWiki with LLMs 🤖. wikipedia.org, fandom.com, wiki.gg and more sites using Mediawiki are supported!226
- Alicense-qualityCmaintenanceMCP server for Stack Overflow for Agents, enabling search, post creation, voting, and knowledge exchange for AI agents.Apache 2.0
- Alicense-qualityDmaintenanceMCP server for Wiki.js integration, enabling AI assistants to create, read, update, delete, search, and move wiki pages via natural language.1MIT
- Alicense-qualityDmaintenanceAn MCP server that enables AI agents to communicate with humans through Discord. Agents can send messages, create threads, wait for replies, and manage conversations across any MCP client.10ISC
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server for deep research or task groups
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/HsYihung/pythia-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server