NovAI - Chinese AI Models Gateway

v0.1.1
io.github.vvvvking/novai-python Checked 3 days ago Published 1 month ago

Chinese frontier AI models as MCP tools via one OpenAI-compatible endpoint, zero platform fee.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
NOVAI_API_KEYrequired NovAI API key. Get $2 free credit (no card) at https://aiapi-pro.com/register

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add novai-python -e 'NOVAI_API_KEY=<NOVAI_API_KEY>' -- uvx --with 'mcp<2' --from aiapi-pro==0.1.1 novai-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "novai-python": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "aiapi-pro==0.1.1",
        "novai-mcp"
      ],
      "command": "uvx",
      "env": {
        "NOVAI_API_KEY": "<NOVAI_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "novai-python": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "aiapi-pro==0.1.1",
        "novai-mcp"
      ],
      "command": "uvx",
      "env": {
        "NOVAI_API_KEY": "<NOVAI_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NOVAI_API_KEY",
      "id": "novai-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "novai-python": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "aiapi-pro==0.1.1",
        "novai-mcp"
      ],
      "command": "uvx",
      "env": {
        "NOVAI_API_KEY": "${input:novai-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.novai-python]
command = "uvx"
args = ["--with", "mcp<2", "--from", "aiapi-pro==0.1.1", "novai-mcp"]
env = { "NOVAI_API_KEY" = "<NOVAI_API_KEY>" }

For AI agents

  1. Ask the user for: NOVAI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: novai_list_models, novai_chat, novai_generate_image, novai_free_models, novai_cheapest, novai_pricing_feed, novai_transparency.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json