Styx MCP server
io.github.timmx7/styx-mcp-server·v1.0.0·5 starsMCP server for Styx — intelligent AI routing across OpenAI, Anthropic, Google, and Mistral.
5 stars29 downloads/wk
Reviews
Write oneNobody has reviewed Styx yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Styx tools (9, 3 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
styx_check_usageGet usage statistics for your Styx account.
styx_create_api_keywrite actionCreate a new API key for a project.
styx_create_projectwrite actionCreate a new project in your Styx account.
styx_list_api_keysList all API keys for the authenticated user.
styx_list_modelsList all AI models available through the Styx gateway.
styx_list_projectsList all projects for the authenticated user.
styx_manage_providersManage BYOK (Bring Your Own Key) provider keys for a project.
styx_send_requestwrite actionSend a chat completion request through the Styx AI gateway.
styx_switch_modelSet the default model for subsequent styx_send_request calls.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 112 days ago8/15
- Maintainer identityregistry namespace matches repository owner6/10
How Styx compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 69/100
- higher than 35% of 4,460 AI and agents servers
- Tools
- 9
- the typical AI and agents server has 6
- Tools that change things
- 33%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 5
- more than 78% of 2,711 AI and agents servers
- Downloads a week
- 29
- more than 15% of 1,538 AI and agents servers with a package
What its tools let an agent do: 6 read · 3 change
Install Styx in Claude Code, Cursor or VS Code
Runs npx -y styx-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add styx-mcp-server -- npx -y styx-mcp-server
What the publisher says
From the Styx repository's README, as published. We do not edit it. Read it on GitHub
⚡ Styx The MCP-Native AI Gateway Route requests to any AI provider through one universal endpoint. Self-hosted. Open source. BYOK.
<!-- Badges -->
What is Styx?
Styx is an open-source AI gateway that sits between your app and AI providers. Send requests to OpenAI, Anthropic, Google, or Mistral — all through one OpenAI-compatible endpoint. Bring your own API keys, self-host on your infra, and get full visibility into every request.
The first AI gateway with native MCP (Model Context Protocol) support.
from openai import OpenAI
client = OpenAI(
api_key="your-styx-api-key",
base_url="http://localhost:8080/v1", # ← Only change needed
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello from Styx"}],
)Features
- 🔌 MCP Native — Built-in MCP server. Connect Claude Code or Cursor in one command
- 🔀 Universal Routing — One OpenAI-compatible endpoint for all providers
- 🤖 styx:auto — Intelligent model routing: use "model": "styx:auto" and let Styx pick the right model based on request complexity
- 🔑 BYOK — Bring your own API keys, encrypted at rest (Fernet/AES)
- 📊 Dashboard — Track requests, costs, latency per project and model
- 🔄 Fallbacks — Auto-failover between providers with circuit breakers
- 💰 Billing — Built-in subscription and credit-based billing (Stripe)
- 🧠 Semantic Cache — Similar questions return cached responses instantly
- ⚡ Smart Routing — ML classifier routes to the optimal model for each request
- 🐳 Self-Hosted — Docker Compose, 5-minute setup
- 🔒 Secure — HMAC key hashing, Fernet encryption, rate limiting, TLS
Prerequisites
- Docker Engine 24+ and Docker Compose v2
- At least one AI provider API key (OpenAI, Anthropic, Google, or Mistral)
- Supabase account (free tier) — only for production mode (not needed for dev mode)
Quick Start
Option A: Setup Wizard (recommended)
git clone https://github.com/timmx7/styx.git
cd styx
./setup.sh # interactive wizard, generates .env
docker compose up -d --build # first build: ~15-20 min; subsequent starts: ~60sThe wizard lets you choose between:
- Dev mode — No Supabase needed, no authentication, instant start
- Production mode — Full Supabase auth, account creation, API keys
Option B: Manual Setup
git clone https://github.com/timmx7/styx.git
cd styx
cp .env.example .envEdit .env with:
- Set SKIPAUTH=true for dev mode, or configure Supabase** for production
- At least one AI provider key (e.g., OPENAIAPIKEY)
docker compose up -d --build # first build: ~15-20 min; subsequent starts: ~60sAccess Points
- Dashboard: http://localhost:3000
- API Gateway: http://localhost:8080 (direct) or https://localhost/v1 (via nginx/TLS)
- Docs API: https://localhost/api (via nginx)
Connect Claude Code
claude mcp add styx -- npx styx-mcpConnect Cursor
Add to .cursor/mcp.json:
{
"styx": {
"command": "npx",
"args": ["styx-mcp"],
"env": { "STYX_API_KEY": "your-key" }
}
}Send your first request
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Authorization: Bearer YOUR_STYX_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello from Styx"}]
}'Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Styx: common questions
- Is Styx MCP server safe?
- With care: it is graded C, so read the findings first (69/100). Read the Styx safety report
- How do I install Styx?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Styx need an API key?
- Yes. The registry entry asks for
STYX_API_KEY,STYX_TOKEN. - Is Styx maintained?
- The last commit was 149 days ago (2026-06-08). The latest release is v1.0.0.
- What can I use instead of Styx?
- Servers from other publishers that do the same job: freellmpool MCP server, LLM Sandbox MCP server and Agent-Native Slides MCP server.
- How does Styx compare with other AI and agents MCP servers?
- safety score 69/100 (higher than 35% of 4,460 AI and agents servers); tools 9 (the typical AI and agents server has 6); tools that change things 33% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Styx
Same job from other publishers: the closest match first, then the best rated.
- freellmpoolOpenAI-compatible MCP gateway cataloging 22 LLM providers, with routing, failover, and tools.not reviewedEstablishedA
- LLM SandboxSecurely run LLM-generated code in isolated containers across 7 languages and 3 container backends.not reviewedWidely usedA
- Agent-Native SlidesAgent-Native Google Slides - generate and edit React presentationsnot reviewedEstablishedA
Agoragentic Agent OS MCPTriptych OS (Agent OS) MCP for governed routing, receipts, and USDC settlement on Base.not reviewedEstablishedB- Agent LspOrchestrates language servers into 65 code-intelligence tools across 32 languages, token-optimized.not reviewedEstablishedA