Repository avatar
AI Tools
v1.0.0
active

sagelib

io.github.aixingzhe/sagelib

List, compare, and call 68 LLMs with live pricing through one Chinese API gateway.

Documentation

SageLib MCP Server

中文 · English


中文

SageLib AI 网关的远程 MCP 服务:一个网关调用 68 个国内外大模型 (OpenAI、Anthropic、Gemini、Kimi、GLM、DeepSeek、Qwen、MiniMax、豆包…),人民币按量计费, 支持 OpenAI / Anthropic / Gemini 三种原生协议。

  • 端点:https://www.sagelib.com/mcp(Streamable HTTP,JSON-RPC 2.0)
  • 官网:https://www.sagelib.com
  • 文档:OpenAPI · llms.txt
  • 鉴权:只读工具无需任何凭据;call_model 由调用方传入自己的 API Key(服务端不保存)

工具

工具参数返回
list_modelsapp_type(text/image/audio/video)、keyword、limit在架模型的标识、名称、类型、上下文长度、输入/输出单价
compare_modelscodes(2–6 个模型标识)上下文长度与价格的横向对比
call_modelmodel、prompt、api_key、max_tokens?、system?经网关调用模型的回答(服务端不存密钥)

价格为厂商公布的官网价(网关折后价登录后可见);返回里带币种与计价单位(/百万 token、/张、/秒)。

在客户端里添加

PI:

{ "mcpServers": { "sagelib": { "url": "https://www.sagelib.com/mcp" } } }

Claude Desktop / 其他支持远程 MCP 的客户端:添加「远程 MCP」,URL 填 https://www.sagelib.com/mcp。

{ "mcpServers": { "sagelib": { "url": "https://www.sagelib.com/mcp" } } }

curl 复现

curl -s -X POST https://www.sagelib.com/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"compare_models","arguments":{"codes":["claude-sonnet-5-5","kimi-k3.1-pro"]}}}'

说明

  • 托管式服务,无需安装;
  • list_models / compare_models 只返回公开目录数据;
  • call_model 会把请求转发到 https://www.sagelib.com/openai/chat/completions,密钥只用于本次请求。

English

Remote Model Context Protocol server for SageLib AI Gateway — one API gateway for 68 LLMs (OpenAI, Anthropic, Gemini, Kimi, GLM, DeepSeek, Qwen, MiniMax, Doubao…) with real-time CNY/USD pricing and OpenAI / Anthropic / Gemini native protocols.

  • Endpoint: https://www.sagelib.com/mcp (Streamable HTTP, JSON-RPC 2.0)
  • Website: https://www.sagelib.com
  • Docs: OpenAPI · llms.txt
  • Auth: read-only tools need no credentials; call_model takes the caller's own API key

Tools

ToolArgumentsReturns
list_modelsapp_type (text/image/audio/video), keyword, limitIn-stock models with context length and input/output price
compare_modelscodes (2–6 model ids)Side-by-side context length and pricing
call_modelmodel, prompt, api_key, max_tokens?, system?Model reply via the gateway (no keys stored)

Prices are the vendors' published official prices (discounted gateway price is shown after login); the response includes currency and billing unit (per MTok / per image / per second).

Add it to your client

PI:

{ "mcpServers": { "sagelib": { "url": "https://www.sagelib.com/mcp" } } }

Claude Desktop / any client supporting remote MCP: add a remote server with URL https://www.sagelib.com/mcp.

{ "mcpServers": { "sagelib": { "url": "https://www.sagelib.com/mcp" } } }

Try it

curl -s -X POST https://www.sagelib.com/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"compare_models","arguments":{"codes":["claude-sonnet-5-5","kimi-k3.1-pro"]}}}'

Notes

  • Hosted server; nothing to install.
  • list_models / compare_models return public catalogue data only.
  • call_model forwards to https://www.sagelib.com/openai/chat/completions with the key passed in the call.

License

MIT

No installation packages available.

Remote