# Sagelib

> Sagelib is a paid MCP server for ai models and llm tooling. MCP server to list, compare and call 68 LLMs through the SageLib gateway. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://www.sagelib.com
- **Repository:** https://github.com/aixingzhe/sagelib-mcp
- **MCP Registry name:** io.github.aixingzhe/sagelib
- **Categories:** AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

SageLib is a Chinese-market API gateway that puts models from OpenAI, Anthropic, Google, Moonshot, DeepSeek, Zhipu, Alibaba, MiniMax, ByteDance and others behind one account. The site lists 68 models: 44 text, 9 image, 6 voice and 9 video. It bills in renminbi on a pay-as-you-go basis and rejects calls when the balance runs out.

The remote MCP server gives an assistant three tools. Two are read-only catalogue lookups that return context length and input and output prices, with the vendors' published list prices. The third forwards a prompt to a chosen model, using an API key the caller passes in; the README says the server does not store it.

The gateway speaks OpenAI, Anthropic and Gemini native protocols, so existing SDKs and tools such as Claude Code, Codex and Cursor only need a new base URL and key. The site says no VPN or foreign account is required and that invoices can be requested from the console.

## Features

- **Model catalogue search:** Filters the 68 models by type or keyword.
- **Side-by-side comparison:** Compares context length and prices for two to six models.
- **Call through the gateway:** Sends a prompt to a chosen model with your own API key.
- **Three native protocols:** Supports OpenAI, Anthropic and Gemini protocols plus OpenAI-compatible calls.
- **Pay-as-you-go billing:** Charges in CNY per use and refuses calls when the balance is empty.

## Good for

- Compare context lengths and prices of Chinese and Western LLMs
- Find image or video generation models on the gateway
- Test a prompt against a model without leaving the assistant
- Point Claude Code or Cursor at one billing account

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http sagelib https://www.sagelib.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://www.sagelib.com/mcp
```

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "sagelib": {
      "type": "http",
      "url": "https://www.sagelib.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "sagelib": {
      "serverUrl": "https://www.sagelib.com/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sagelib": {
      "type": "http",
      "url": "https://www.sagelib.com/mcp"
    }
  }
}
```

## Tools

- `list_models`: 列出本站当前在架的大模型：模型标识、名称、类型、上下文长度、输入/输出单价。可按类型（text/image/audio/video）或关键词过滤。
- `compare_models`: 对比指定模型：上下文长度、类型、输入/输出单价。传入 2–6 个模型标识。
- `call_model`: 通过本站网关调用指定模型（OpenAI 兼容接口）。必须提供用户自己的网关令牌 api_key，服务端不保存密钥。

## FAQ

### Do the read-only tools need credentials?

No. list_models and compare_models need none; call_model needs the caller's own API key.

### Is the API key stored?

The README says the server does not store it and uses it only for that request.

### What prices are shown?

The vendors' published list prices; the discounted gateway price is visible after login.

### Do I need a VPN?

The site says no; it is reachable directly from mainland networks.

### Is Sagelib free?

No. Sagelib is a paid product.

### How do I add Sagelib to Claude Code?

Run this command in your terminal: claude mcp add --transport http sagelib https://www.sagelib.com/mcp

### What are the best alternatives to Sagelib?

The closest alternatives to Sagelib are Claude Code Ultimate Guide, signafAIde, Toolkien, Lugh and HypePaper.

## Alternatives

- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [signafAIde](https://ai-powered.com/mcp/signafaide): signafAIde is a freemium MCP server for security.
- [Toolkien](https://ai-powered.com/mcp/toolkien): Toolkien is an open-source MCP server for ai models and llm tooling.
- [Lugh](https://ai-powered.com/mcp/lugh): Lugh is an open-source MCP server for ai models and llm tooling.
- [HypePaper](https://ai-powered.com/mcp/hypepaper): HypePaper is a freemium MCP server for ai models and llm tooling.
- [Agent Data Tools: Compact (find, describe, run)](https://ai-powered.com/mcp/agent-data-tools-compact-find-describe-run): Agent Data Tools: Compact (find, describe, run) is a freemium MCP server for developer tools.
- [Angel Agent Guard: pre-purchase check + prompt-injection scan](https://ai-powered.com/mcp/angel-agent-guard-pre-purchase-check-prompt-injection-scan): Angel Agent Guard: pre-purchase check + prompt-injection scan is a freemium MCP server for ai models and llm tooling.
- [Mizan Calibration](https://ai-powered.com/mcp/mizan-calibration): Mizan Calibration is a free MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/sagelib
