MCP Gateway 1a31c294

MCPAI代理

提供方 dublyo

AI代理 stdio · 本地进程 Token 社区 / 第三方 Claude DesktopClaude
查看接入方式

一个轻量级的多租户模型上下文协议(MCP)网关,可在任何服务器上运行,并通过HTTPS暴露MCP工具,适用于需要多租户管理和多种工具集成的场景。

一句话选型结论

按资料字段整理

MCP Gateway 1a31c294 属于AI代理类 MCP 服务器,stdio · 本地进程,Token,可直接接入 Claude Desktop、Claude,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式stdio · 本地进程 鉴权Token 部署方式本地部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 18 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量18暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

多租户Go本地部署MCP协议轻量级工具集成HTTPS网关

安装与配置

stdio · 本地进程 Token
客户端在本机拉起子进程,数据不出本机
docker run -d \

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Docker,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 18 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 18 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好Token对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Gateway 1a31c294当前 18 stdio · 本地进程 本地部署 有 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方dublyo上游标注的维护方 dublyo
分类AI代理本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式Token远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Docker本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

10.2 KB
来自项目仓库与上游目录的原文,未做删改

Dublyo MCP Gateway

A lightweight, multi-tenant Model Context Protocol (MCP) gateway that runs on any server and exposes MCP tools over HTTPS. Built in Go with zero framework dependencies.

Each gateway instance hosts multiple MCP connections — each with its own subdomain, API key, and profile — all routed through a single container.

Features

  • 18 built-in profiles — Filesystem, Web Fetch, WordPress Knowledge, Memory, Time, DNS, Crypto, Healthcheck, Cron, Regex, Math, IP, Webhook, Email, Data Transform, Database (PostgreSQL), Redis, and Sequential Thinking
  • Two MCP transports — SSE (Claude Desktop compatible) and Streamable HTTP
  • Per-connection auth — Peppered SHA-256 API key verification with constant-time comparison
  • Rate limiting — Sliding window per connection (configurable requests/minute)
  • Concurrency control — Max concurrent sessions per connection
  • Metrics reporting — Request counts, error rates, P95 latency, active sessions
  • Auto-config sync — Polls the Dublyo API every 30s for connection changes
  • Auto token refresh — Gateway JWT tokens refresh transparently before expiry
  • Traefik integration — Docker labels for wildcard subdomain routing
  • Tiny footprint — ~15MB Alpine-based Docker image

Quick Start```bash

docker run -d \
--name mcp-gateway \
-e GATEWAY_TOKEN=your_jwt_token \
-e DUBLYO_API_URL=https://your-api-url.example.com \
-p 8080:8080 \
ghcr.io/dublyo/mcp-gateway:latest


Or with Docker Compose:```yaml
services:
  mcp-gateway:
    image: ghcr.io/dublyo/mcp-gateway:latest
    restart: unless-stopped
    environment:
      - GATEWAY_TOKEN=${GATEWAY_TOKEN}
      - DUBLYO_API_URL=https://your-api-url.example.com
    ports:
      - "8080:8080"
    volumes:
      - mcp-data:/data

volumes:
  mcp-data:

Environment Variables

Variable Required Default Description
GATEWAY_TOKEN Yes — JWT token for Dublyo API authentication
GATEWAY_PORT No 8080 HTTP listen port
DUBLYO_API_URL No — Dublyo API base URL for config sync and metrics
SYNC_INTERVAL No 30s Config sync polling interval
METRICS_INTERVAL No 30s Metrics reporting interval
LOG_LEVEL No info Log verbosity (debug, info, warn, error)

Architecture```

Client (Claude Desktop / SDK / Any MCP Client)
│
│ HTTPS + Bearer Token
▼
┌─────────────────────────────────────────┐
│ MCP Gateway Container (:8080) │
│ │
│ Host header ──► Connection lookup │
│ Bearer token ──► SHA-256 verification │
│ Rate limit check ──► Sliding window │
│ │
│ ┌─────────┐ ┌─────────┐ │
│ │ SSE │ │ HTTP │ Transports │
│ │ /sse │ │ /mcp │ │
│ └────┬────┘ └────┬────┘ │
│ └──────┬─────┘ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ JSON-RPC Handler │ │
│ └────────┬─────────┘ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ Profile Handler │ (18 profiles) │
│ └──────────────────┘ │
└─────────────────────────────────────────┘
│ ▲
│ Metrics (30s) │ Config sync (30s)
▼ │
Dublyo API ───────────────┘


## Endpoints

| Route | Method | Auth | Description |
|-------|--------|------|-------------|
| `/health` | GET | None | Health check — returns `{"status":"ok"}` |
| `/sse` | GET | Bearer | Opens SSE stream (Claude Desktop compatible) |
| `/message` | POST | Bearer | Sends JSON-RPC message to SSE session |
| `/mcp` | POST | Bearer | Streamable HTTP — JSON-RPC request/response |
| `/mcp` | GET | Bearer | Streamable HTTP — keep-alive SSE stream |
| `/mcp` | DELETE | None | Streamable HTTP — terminate session |

## Profiles

| ID | Name | Tools | Requires Config |
|----|------|-------|-----------------|
| `filesystem` | Filesystem | 8 | `ALLOWED_PATHS` |
| `fetch` | Web Fetch | 2 | Optional `ALLOWED_DOMAINS` |
| `wordpress-knowledge` | WordPress Knowledge | 4 | `LLMS_TXT_URL` |
| `memory` | Memory | 5 | Optional `PERSIST_PATH` |
| `time` | Time & Timezone | 4 | Optional `DEFAULT_TIMEZONE` |
| `thinking` | Sequential Thinking | 1 | None |
| `dns` | DNS & Network | 4 | None |
| `crypto` | Hash & Crypto | 6 | None |
| `healthcheck` | HTTP & SSL Monitor | 4 | None |
| `cron` | Cron Scheduler | 3 | None |
| `regex` | Regex Tester | 4 | None |
| `math` | Math & Calculator | 5 | None |
| `ip` | IP & Networking | 4 | None |
| `webhook` | Webhook Sender | 3 | Optional `SLACK_WEBHOOK_URL`, `DISCORD_WEBHOOK_URL` |
| `email` | Email Sender | 3 | `SMTP_HOST`, `FROM_ADDRESS` |
| `transform` | Data Transform | 8 | None |
| `database` | Database (PostgreSQL) | 4 | `DATABASE_URL` |
| `redis` | Redis | 6 | `REDIS_URL` |

## Adding a Profile

1. Create `internal/profiles/yourprofile.go` implementing the `Profile` interface:```go
package profiles

type YourProfile struct{}

func (p *YourProfile) ID() string { return "your-profile" }

func (p *YourProfile) Tools() []Tool {
    return []Tool{
        {
            Name:        "your_tool",
            Description: "What your tool does",
            InputSchema: map[string]interface{}{
                "type": "object",
                "properties": map[string]interface{}{
                    "param": map[string]interface{}{
                        "type":        "string",
                        "description": "Parameter description",
                    },
                },
                "required": []string{"param"},
            },
        },
    }
}

func (p *YourProfile) CallTool(name string, args map[string]interface{}, env map[string]string) (string, error) {
    switch name {
    case "your_tool":
        // Implementation here
        return "result", nil
    default:
        return "", fmt.Errorf("unknown tool: %s", name)
    }
}
  1. Register it in internal/profiles/profiles.go:```go
    func init() {
    reg := []Profile{
    // ... existing profiles
    &YourProfile{},
    }
    // ...
    }

3. Push to `main` — CI builds and pushes to GHCR automatically.

## Building from Source```bash
# Clone
git clone https://github.com/dublyo/mcp-gateway.git
cd mcp-gateway

# Build binary
go build -o mcp-gateway ./cmd/gateway

# Run
GATEWAY_TOKEN=your_token ./mcp-gateway

Docker Build```bash

docker build -t mcp-gateway .
docker run -e GATEWAY_TOKEN=your_token -p 8080:8080 mcp-gateway


## MCP Protocol

The gateway implements the Model Context Protocol specification version `2024-11-05`.

**Supported JSON-RPC methods:**
- `initialize` — Returns server info and capabilities
- `ping` — Health check
- `tools/list` — Returns available tools for the connection's profile
- `tools/call` — Executes a tool and returns results

**Connecting with Claude Desktop:**

Add to your Claude Desktop config (`claude_desktop_config.json`):```json
{
  "mcpServers": {
    "my-server": {
      "url": "https://my-server-a1b2c3d4.dublyo.xyz/sse",
      "headers": {
        "Authorization": "Bearer dky_your_api_key_here"
      }
    }
  }
}

Project Structure```

mcp-gateway/
├── cmd/gateway/main.go # Entry point
├── internal/
│ ├── gateway/
│ │ ├── gateway.go # Core: connections, auth, rate limits, metrics
│ │ ├── poller.go # Config sync + metrics reporting loops
│ │ └── traefik.go # Optional Traefik file provider config
│ ├── mcp/
│ │ ├── handler.go # JSON-RPC 2.0 protocol handler
│ │ └── types.go # MCP protocol type definitions
│ ├── profiles/
│ │ ├── profiles.go # Profile interface + registry
│ │ ├── filesystem.go # File operations (sandboxed)
│ │ ├── fetch.go # HTTP fetch (SSRF-safe)
│ │ ├── wordpress_knowledge.go # WordPress llms.txt search
│ │ ├── memory.go # Key-value store
│ │ ├── time.go # Timezone operations
│ │ ├── thinking.go # Structured reasoning
│ │ ├── dns.go # DNS lookups
│ │ ├── crypto.go # Hashing, UUID, passwords
│ │ ├── healthcheck.go # URL/SSL monitoring
│ │ ├── cron.go # Cron expressions
│ │ ├── regex.go # Regex operations
│ │ ├── math_profile.go # Math/stats/conversion
│ │ ├── ip.go # IP/CIDR/subnet
│ │ ├── webhook.go # Webhooks, Slack, Discord
│ │ ├── email.go # SMTP email
│ │ ├── transform.go # JSON, Base64, URL encoding
│ │ ├── database.go # PostgreSQL queries
│ │ └── redis.go # Redis operations
│ └── server/
│ └── server.go # HTTP server, SSE + HTTP transports
├── Dockerfile # Multi-stage build (Alpine 3.20)
├── go.mod
└── .github/workflows/build.yml # CI: build + push to GHCR
```

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

You are free to use, modify, and distribute this software. If you modify it and run it as a network service, you must make your modified source code available to users of that service.

Built by Dublyo.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
MCP Gateway 1a31c294 怎么安装?

在客户端按下面的安装命令接入:docker run -d \。装完在客户端配置里引用同一个包或端点。

MCP Gateway 1a31c294 怎么在 Claude Desktop、Claude 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

MCP Gateway 1a31c294 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Gateway 1a31c294 需要 API Key 吗?

资料标注需要Token认证,使用前准备好对应凭据,并按最小权限配置。

MCP Gateway 1a31c294 支持哪些客户端?

资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

MCP Gateway 1a31c294 能提供哪些能力?

资料显示约 18 个工具;能力标签包括 多租户、轻量级、Go、Claude。具体工具清单以官方文档为准。

MCP Gateway 1a31c294 需要什么运行环境?

运行时为 Docker;属于本地进程,需要在本机装好运行环境。

MCP Gateway 1a31c294 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。