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»).

PYPI package 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 (Claude Desktop وCursor وVS Code)
{
    "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 without
  • MYAI_BASE_URL Override only for self-hosted/staging

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. myai-mcp
  2. Install
  3. Claude Desktop config
  4. Example usage (once connected)
  5. Links
  6. v0.2.0 — Zero-config

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 network
  • myai_list_models — see what models are online right now
  • myai_list_agents — browse active provider nodes and their hardware
  • myai_network_stats — live network health and job activity
  • myai_wallet_balance — check MYAI token balance for any address
  • myai_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?"

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 الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.