Styx Mcp Server

io.github.timmx7由 GitHub 帳號 timmx7 發布v1.0.0更新於 Oct 24, 2026

MCP server for Styx — intelligent AI routing across OpenAI, Anthropic, Google, and Mistral.

概覽

AI 產生的概覽

針對自架 Styx AI 閘道的 MCP 伺服器,讓助理在 OpenAI、Anthropic、Google 與 Mistral 之間路由請求,並管理專案、金鑰與用量。

可以做什麼
  • 透過 Styx 閘道送出 AI 請求,並列出可用模型與其價格
  • 設定預設路由模型
  • 列出與建立專案
  • 列出與建立 API 金鑰
  • 查看用量與成本統計
  • 管理 BYOK 供應商金鑰
適用情境
適合已自架 Styx 閘道、希望助理透過單一端點送出模型請求、比較模型與價格,或在聊天用戶端中管理專案、API 金鑰與用量的情境。
執行需求
透過 npx 在本機執行(需 Node.js 18+);README 另列出 Python 3.10+ 及 mcp、httpx、pydantic 相依套件。需要可連線的自架 Styx 執行個體,STYX_API_URL 與 STYX_PROXY_URL 預設指向 localhost。送出請求需 STYX_API_KEY,管理工具需 STYX_TOKEN。
安裝前請注意
需要兩個密鑰 STYX_API_KEY 與 STYX_TOKEN,並會寫入用戶端設定檔。管理工具會建立專案與 API 金鑰、管理供應商金鑰,會對你的 Styx 執行個體寫入資料。經閘道送出請求可能產生費用,建議先查看用量與價格。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Styx Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

styx-mcp-server

MCP server for Styx — the intelligent AI gateway that routes requests across OpenAI, Anthropic, Google, and Mistral from a single endpoint.

Connect Claude Code, Cursor, Windsurf, or any MCP-compatible client to your self-hosted Styx instance.

Quick start

bash
# Add to Claude Codeclaude mcp add styx -- npx styx-mcp-server
# Or run directlynpx styx-mcp-server

Requirements

  • Node.js 18+
  • Python 3.10+ with dependencies:
bash
pip install mcp[cli] httpx pydantic

Configuration

Set environment variables before starting:

VariableDefaultDescription
STYX_API_URLhttp://localhost:8000Styx backend URL
STYX_PROXY_URLhttp://localhost:8080Styx proxy URL
STYX_API_KEY—API key (for styx_send_request)
STYX_TOKEN—Auth token (for project/key management)

Claude Code config

Add to .claude/mcp.json:

json
{  "mcpServers": {    "styx": {      "command": "npx",      "args": ["styx-mcp-server"],      "env": {        "STYX_API_URL": "http://localhost:8000",        "STYX_PROXY_URL": "http://localhost:8080",        "STYX_API_KEY": "sk-styx-...",        "STYX_TOKEN": "your-token"      }    }  }}

Tools

ToolDescription
styx_send_requestRoute AI requests through the gateway
styx_list_modelsList all available models with pricing
styx_switch_modelSet a default model
styx_list_projectsList your projects
styx_create_projectCreate a new project
styx_list_api_keysList API keys
styx_create_api_keyCreate an API key
styx_check_usageView usage and cost statistics
styx_manage_providersManage BYOK provider keys

SSE transport

bash
npx styx-mcp-server --sse   # starts on port 8090

License

Apache-2.0

來源:styx-mcp-server/README.md,提交 48ddf89

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分