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
    }
}

AgentSpawnMCP — 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 License

Copyright (c) 2025 Michael Makarov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.5.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.5-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_spawn_mcp-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 047f9858679ff7acac0ba0be6ea1cb96e5e284f493860fde44d209ca02582640
MD5 74b7536dfcbad4d3452ea0cb112f6f87
BLAKE2b-256 208b59c544342c1d4ccbea69887fa553d3bad9990c4fb58bdc39185205dfc226

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_spawn_mcp-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 754be36b35b62153a377465edcb8338be0236efdeb8cb40347e891e14e4fd90c
MD5 374cab74bcabcc7de1d36518e9f28cb0
BLAKE2b-256 c5a45e7d035ae7f9143d2078568f8ccd3bd79eb46fd268070ef3b4f6653c1836

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