Skip to main content

Universal MCP server for any OpenAI-compatible LLM. Supports OpenAI and Anthropic API formats.

Project description

AgentSpawnMCP

Universal MCP server for any OpenAI-compatible LLM. Supports OpenAI and Anthropic API formats, cloud providers (OpenAI, Grok, Claude, Minimax, DeepSeek) and local models (Ollama, LM Studio, Jan). Built on FastMCP with pure httpx.

Quick Start — Spawn Agents

# No install needed — run directly with uvx
uvx agent-spawn-mcp spawn \
  --name minimax \
  --url https://api.minimax.io/anthropic/v1 \
  --token your-token \
  --model MiniMax-M2.7 \
  --api-type anthropic

Or install globally:

pip install agent-spawn-mcp
agent-spawn-mcp spawn --name minimax --url https://api.minimax.io --token TOKEN --model MiniMax-M2.7

API Types

  • --api-type openai (default) — OpenAI-compatible (/v1/chat/completions)
  • --api-type anthropic — Anthropic API (/v1/messages)

Claude Code / OpenCode Integration

Add to your .mcp.json:

{
  "mcpServers": {
    "minimax-agent": {
      "command": "uvx",
      "args": ["agent-spawn-mcp", "spawn",
               "--name", "minimax",
               "--url", "https://api.minimax.io/anthropic/v1",
               "--token", "your-minimax-token",
               "--model", "MiniMax-M2.7",
               "--api-type", "anthropic"]
    },
    "claude-agent": {
      "command": "uvx",
      "args": ["agent-spawn-mcp", "spawn",
               "--name", "claude",
               "--url", "https://api.anthropic.com",
               "--token", "your-anthropic-token",
               "--model", "claude-sonnet-4-20250514",
               "--api-type", "anthropic"]
    }
  }
}

Tools Exposed

  • {name}_agent(task, model?, system_prompt?, temperature?, max_tokens?, timeout?) — Spawn agent
  • agent_info() — Get provider info

Return Format

{
    "result": "...",  # Agent response text
    "metadata": {
        "provider": "minimax",
        "model_used": "MiniMax-M2.7",
        "usage": {"prompt_tokens": 100, "completion_tokens": 500},
        "latency_ms": 2340
    }
}

UniOAPI-MCP — Full Server

Full MCP server with all tools (chat, vision, files, search, agent). Requires git clone.

git clone https://github.com/sandsaber/AgentSpawnMCP
cd AgentSpawnMCP
uv sync
cp example.env .env
# Edit .env with your tokens

uv run python main.py main --provider grok

Auto-Discovery

Providers auto-detected when env var is set:

Env Var Provider
XAI_TOKEN Grok
OPENAI_TOKEN OpenAI
GROQ_TOKEN Groq
DEEPSEEK_TOKEN DeepSeek

Available Tools (Full Server)

Tool Description
list_providers All discovered providers
list_models Models for the active provider
chat Text completion with session history
stateful_chat Server-side conversation
chat_with_vision Analyze images (jpg/jpeg/png)
generate_image Create or edit images
upload_file / list_files / get_file_content / delete_file File management
chat_with_files Chat with documents
web_search Agentic web search
code_executor Execute code
agent Unified agent
list_chat_sessions / get_chat_history / clear_chat_history Session history

License

MIT — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_spawn_mcp-1.0.4.tar.gz (65.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_spawn_mcp-1.0.4-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_spawn_mcp-1.0.4.tar.gz.

File metadata

  • Download URL: agent_spawn_mcp-1.0.4.tar.gz
  • Upload date:
  • Size: 65.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_spawn_mcp-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5ac7384bb868f82b8a6abd25aaeb5e5b0768b1c27f6e9ca0230c7f38e34a5a9a
MD5 6fa0cc509f0c1f78538ac55ba9c9048d
BLAKE2b-256 e5f182c6fa8bda6612a1c9587c817c87562ef7332ee412442441359d87f1ff60

See more details on using hashes here.

File details

Details for the file agent_spawn_mcp-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: agent_spawn_mcp-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_spawn_mcp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1cda2d870989150ca7f002507e2cdfa9f661d52a87483b4532e9ca2d3511cd90
MD5 988b73dfd85d19cdaece45840ba4966c
BLAKE2b-256 dc22ea1eb2335948caad65287a50cedd6d0094bdfd5e869748c032a030fc7324

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page