Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Self-hosted MCP gateway and LLM proxy: OAuth 2.1, model aliases, Grok subscription as an API.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
PUBLIC_URL, OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"skgate": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PUBLIC_URL",
"-e",
"OIDC_ISSUER",
"-e",
"OIDC_CLIENT_ID",
"-e",
"OIDC_CLIENT_SECRET",
"ghcr.io/helv-io/skgate:0.28.0"
],
"env": {
"PUBLIC_URL": "your-value",
"OIDC_ISSUER": "your-value",
"OIDC_CLIENT_ID": "your-value",
"OIDC_CLIENT_SECRET": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add skgate --env PUBLIC_URL=your-value --env OIDC_ISSUER=your-value --env OIDC_CLIENT_ID=your-value --env OIDC_CLIENT_SECRET=your-value -- docker run -i --rm -e PUBLIC_URL -e OIDC_ISSUER -e OIDC_CLIENT_ID -e OIDC_CLIENT_SECRET ghcr.io/helv-io/skgate:0.28.0运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"skgate": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PUBLIC_URL",
"-e",
"OIDC_ISSUER",
"-e",
"OIDC_CLIENT_ID",
"-e",
"OIDC_CLIENT_SECRET",
"ghcr.io/helv-io/skgate:0.28.0"
],
"env": {
"PUBLIC_URL": "your-value",
"OIDC_ISSUER": "your-value",
"OIDC_CLIENT_ID": "your-value",
"OIDC_CLIENT_SECRET": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"skgate": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PUBLIC_URL",
"-e",
"OIDC_ISSUER",
"-e",
"OIDC_CLIENT_ID",
"-e",
"OIDC_CLIENT_SECRET",
"ghcr.io/helv-io/skgate:0.28.0"
],
"env": {
"PUBLIC_URL": "your-value",
"OIDC_ISSUER": "your-value",
"OIDC_CLIENT_ID": "your-value",
"OIDC_CLIENT_SECRET": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 helv-io 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:PUBLIC_URL, OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.28.0)于20天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
skgate
Self-hosted MCP gateway and LLM proxy. Serve any MCP server or REST API behind OAuth 2.1 from one address, and proxy your LLM providers (OpenAI, Anthropic, Gemini, Grok, Ollama and more) through one OpenAI-compatible API with model aliases and virtual keys. Your Grok subscription works too, no API key needed.
Any MCP server. skgate can run them for you, so you do not need one container per server.
skgate /ɛsˈkɑːɡeɪt/ (ess-KAH-gate)
"sk" is how a lot of SI API keys start, and "gate" is for gateway. Not a great name, but it's ours.
The plane in the logo is an inside joke. The public wouldn't understand it, and I'm not about to explain it. Sorry.
Is it good?
Yes
You need an OIDC provider with a confidential client for skgate. Admin login is OIDC only. Trying it on one machine? docs/quickstart.md runs skgate with a bundled provider and no accounts.
# docker-compose.yml
services: skgate: container_name: skgate image: ghcr.io/helv-io/skgate:latest restart: always ports:
docker compose up -dhttps://skgate.example.com/admin and sign in through your OIDC provider.https://skgate.example.com/mcp or the site root for every included upstream, or at https://skgate.example.com/mcp/ for one upstream. Sign in when it asks.Image tags:
latest: proxy + managed MCP servers. Bundles Node.js (npx), pnpm, Bun (bunx), Deno, Python (uv, uvx), Go, .NET and git.slim: proxy onlyTo upgrade, back up ./data, then docker compose pull && docker compose up -d.
skgate is also an OpenAI-compatible API in front of your SI providers. Point your apps at one address; switch the provider behind them without changing the apps. User-defined model aliases give your apps a stable model name of your choosing.
Grok can use subscription sign-in with no API key. Other providers use that provider's API key (OpenAI, Anthropic, Gemini, Mistral, DeepSeek, Groq, OpenRouter, Ollama, LM Studio, and any OpenAI-compatible endpoint).
sk-... key; it is shown once.https://skgate.example.com/v1, API key sk-... (see Examples)./v1, /api, /api/v1, and the bare host. Use whichever form your client expects.curl: models and a chat completion
export SKGATE=https://skgate.example.com KEY=sk-...
curl -s $SKGATE/v1/models -H "Authorization: Bearer $KEY" curl -s $SKGATE/v1/chat/completions -H "Authorization: Bearer $KEY" \ -H 'Content-Type: application/json' \ -d '{"model":" ","messages":[{"role":"user","content":"Say hi"}]}'
OpenAI client
export OPENAI_BASE_URL=https://skgate.example.com/v1 OPENAI_API_KEY=sk-...
from openai import OpenAI
client = OpenAI() # reads the two variables above r = client.chat.completions.create(model=" ", messages=[{"role": "user", "content": "Say hi"}]) print(r.choices[0].message.content)
Model aliases: user-defined names for models
Aliases are user-defined: skgate ships with none. Pick any name and point it at a model. This example uses grok-latest, but the name is up to you.
Change the target in this one place and every app using that name switches at once, with no client config changes.
Grok > Aliases: New alias grok-latest, Target model grok-4.7, Add alias.
client sends {"model": "grok-latest", ...}
skgate sends {"model": "grok-4.7", ...}
Aliases are listed first in /v1/models.
Add an MCP server with Suggest configuration
Needs the latest image and an MCP helper model from any ready provider. The first time, Pick MCP helper model next to the button opens the model picker right on the page.
mcp upstreams > Add upstream > Type managed process:
| Source | Runs as |
|---|---|
@modelcontextprotocol/server-everything | npm package, npx |
pypi:mcp-server-time | PyPI package, uvx |
https://github.com/example-org/notes-mcp | git repo: clone, install, run (private: Suggest asks for a token) |
package.json, pyproject.toml, server.json).The MCP helper model proposes the command, args, install step, and env names (secret or not, required or optional). The Manual configuration fields fill in, with a confidence and any warnings.
Nothing is saved yet. Set the variables the server needs.
https://skgate.example.com/mcp/ .If the button is greyed out, hover it. Use Pick MCP helper model beside it, or add a provider on status first.
MCP client: one upstream or all of them
| URL | Serves |
|---|---|
https://skgate.example.com/mcp/ | One upstream |
https://skgate.example.com/mcp | Every upstream marked In /mcp |
https://skgate.example.com/ (MCP clients) | Same aggregate as /mcp when Accept/Content-Type look like MCP; browsers still go to /admin |
Hosted connectors use OAuth (leave client ID and secret empty). Scripts and CLIs send a key:
{"mcpServers": {"skgate": {"type": "http", "url": "https://skgate.example.com/mcp/<alias>",
"headers": {"Authorization": "Bearer sk-..."}}}}
On-demand MCP servers: no RAM while idle
On a RAM-constrained homelab, idle MCP servers should cost nothing.
Managed servers (npx, pnpm dlx, bunx, deno, uvx, git) are child processes of skgate.
By default (Lifecycle on-demand) one starts on its first request and stops after 10 minutes without requests; the next request starts it again.
before 3 MCP servers = 3 containers, always running
after 1 skgate container; 0 server processes while idle, 1 per server in use
stopped --request--> starting --> running --10 min idle--> stopped
always-on starts the server at boot instead.idleTimeoutSeconds in import JSON (default 600; not in the form):{"mcpServers": {"time": {"command": "uvx", "args": ["mcp-server-time"], "skgate": {"idleTimeoutSeconds": 120}}}}
/mcp includes remote, OpenAPI and always-on upstreams marked In /mcp. On-demand servers are left out, so /mcp never starts them. Point a client at /mcp/ to use one.Managed MCP server: npx (stdio)
mcp upstreams > import JSON > paste > Import. Needs the latest image.
{"mcpServers": {"everything": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-everything"]}}}
Served at https://skgate.example.com/mcp/everything. The same package runs with any bundled runner:
| Runner | command | args |
|---|---|---|
| npm | npx | ["-y", " "] |
| pnpm | pnpm | ["dlx", " "] |
| Bun | bunx | [" "] |
| Deno | deno | ["run", "-A", "npm: "] |
| Python | uvx | [" "] |
Managed MCP server: git repository
mcp upstreams > import JSON > paste > Import. skgate clones the repo, runs install, then the command.
{"mcpServers": {"notes": {"command": "node", "args": ["server.js"],
"skgate": {"gitUrl": "https://github.com/example-org/notes-mcp.git", "gitRef": "main", "install": "npm ci"}}}}
Remote MCP server
mcp upstreams > Add upstream > Type remote server, or import:
{"mcpServers": {"docs": {"type": "http", "url": "https://mcp.example.com/mcp",
"headers": {"Authorization": "Bearer ..."}}}}
| Feature | What it does |
|---|---|
| Grok sign-in | Device code or browser paste-back; tokens refresh |
| Other providers | OpenAI, Anthropic, Gemini and more by API key (docs) |
| Model aliases | User-defined model names; change the target once |
| API | /v1, /api/v1, /api, no prefix; SSE (docs) |
| Virtual keys | Hashed; tokens in/out per key (docs) |
| MCP | Remote, stdio and git servers behind OAuth 2.1 (docs) |
| Live tool updates | Connected clients hear when an upstream's tools change after an update, a reinstall or a tool switched on or off, and pick up the new tools without reconnecting |
| REST APIs as tools | Give an OpenAPI description, pick the operations (or let Suggest names and selection name them and pick a core set), and MCP clients get them as tools (docs) |
Clients tested by the author against a live skgate. Status is what happened, not a promise.
| Client | Status | Notes |
|---|---|---|
| ChatGPT | OK | |
| Claude | OK | |
| Grok | OK | |
| Hermes | OK | |
| Open WebUI | OK | Use OAuth 2.1; register and authorize the client. |
| Gemini | Warning | Connects, but never calls tools. |
| Home Assistant | Warning | Needs a manual OAuth client ID and secret. Only one MCP upstream can be used. |
| Cline | Untested | |
| Continue | Untested | |
| Cursor | OK | |
| Goose | Untested | |
| LibreChat | Untested | |
| VS Code | Untested | |
| Windsurf | Untested | |
| Zed | Untested |
skgate stdio starts a small read-only MCP server on stdin and stdout. It exists so MCP directories and scanners, which start a server and ask what it offers, can look at skgate. It is not for real use: to run skgate, use the Docker image above.
It needs no settings, opens no port, reads no database and uses no network. It has three tools: about, list_features and config_help. They describe skgate and nothing else. More in docs/mcp.md.
A rough guide from each project's docs as of 2026-10-13. Check them for current features.
| | skgate | [LiteLLM](https://github.com/Berr
只显示了开头部分;其余内容请在仓库中阅读