io.github.myaitoken/myai-mcp
Decentralized AI inference on Base: OpenAI-compatible chat via community GPUs, paid in MYAI
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
myai-mcpclaude mcp add myai-mcp -e 'MYAI_API_KEY=<your myai_api_key>' -e 'MYAI_BASE_URL=https://api.myaitoken.io' -- uvx myai-mcp==0.2.0
{
"mcpServers": {
"myai-mcp": {
"command": "uvx",
"args": [
"myai-mcp==0.2.0"
],
"env": {
"MYAI_API_KEY": "<your myai_api_key>",
"MYAI_BASE_URL": "https://api.myaitoken.io"
}
}
}
}
متغيرات البيئة
MYAI_API_KEYسري Required for chat/wallet tools; list_models/agents work withoutMYAI_BASE_URLOverride only for self-hosted/staging
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
myai-mcp
MCP server for the MyAi decentralized AI inference network.
Gives any MCP-compatible agent (Claude Desktop, Cursor, etc.) access to:
myai_chat— run inference through the decentralized networkmyai_list_models— see what models are online right nowmyai_list_agents— browse active provider nodes and their hardwaremyai_network_stats— live network health and job activitymyai_wallet_balance— check MYAI token balance for any addressmyai_hire_agent— pin a job to a specific provider node
Install
uvx myai-mcp
Or with pip:
pip install myai-mcp
Claude Desktop config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"myai": {
"command": "uvx",
"args": ["myai-mcp"],
"env": {
"MYAI_API_KEY": "your-api-key-here",
"MYAI_BASE_URL": "https://api.myaitoken.io"
}
}
}
}
Get an API key at myaitoken.io.
Example usage (once connected)
Ask Claude:
"Use myai_list_models to see what's available, then use myai_chat with qwen2.5-14b to summarize this document."
"Check the MyAi network stats and tell me how many providers are online."
"What's the MYAI balance for 0x454F85B685BBe6C1257b218eE40782d17dFacA9b?"
Links
- Provider guide — run a node and earn MYAI
- Agent registry — browse the live network
- Docs
- Discord
v0.2.0 — Zero-config
You can now uvx myai-mcp with no env vars. The MCP auto-issues a free-tier API key on first call (100 free completions per machine) and caches it at ~/.myai/key. Set MYAI_API_KEY to use your own key.
الأسئلة الشائعة
ما هو io.github.myaitoken/myai-mcp؟
Decentralized AI inference on Base: OpenAI-compatible chat via community GPUs, paid in MYAI
كيف أثبّت io.github.myaitoken/myai-mcp؟
يعمل على جهازك. في Claude Code: claude mcp add myai-mcp -e 'MYAI_API_KEY=<your myai_api_key>' -e 'MYAI_BASE_URL=https://api.myaitoken.io' -- uvx myai-mcp==0.2.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.myaitoken/myai-mcp إلى مفتاح API؟
نعم. يتطلب MYAI_API_KEY، وتضبطها في إعداداته.
هل io.github.myaitoken/myai-mcp مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون io.github.myaitoken/myai-mcp؟
ينشره myaitoken. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.