qualien-mcp
A composite MCP gateway that aggregates multiple MCP servers into one endpoint for SDET/QE workflows, with curated tool namespacing, central safety guardrails, and composite tools like API-vs-DB verification.
README
qualien-mcp
A composite MCP gateway — it aggregates multiple Model Context Protocol servers behind one connection, curated for SDET / QE workflows. Add one server to your AI assistant instead of five.
npx qualien-mcp
Out of the box it serves the QE starter pair — Playwright MCP (browser automation, DOM, screenshots) and Filesystem MCP (read/edit project files, page objects, test utils) — with zero config. Tools are exposed to your assistant namespaced as playwright__… and filesystem__….
Why a gateway?
Your assistant can already connect to many MCP servers directly — so a gateway earns its place by doing what a pile of servers can't:
- One endpoint to add to any client (Claude Code, Claude Desktop, Cursor, …).
- Curation — enable/disable per server and per tool. Fewer, better-named tools = better tool-selection by the model (dumping 200 tools at it makes it worse).
- One routing/logging surface — every call is logged to stderr with the downstream, tool, and latency.
- Clean lifecycle — spawns each downstream as a child process and tears them all down on exit (no orphaned browser processes).
- Curated for QE — an opinionated SDET toolkit, not a generic proxy.
Use it with your assistant
Claude Code (.mcp.json or user settings):
{
"mcpServers": {
"qualien": { "command": "npx", "args": ["-y", "qualien-mcp"] }
}
}
Claude Desktop (claude_desktop_config.json) — same shape under mcpServers.
That single entry gives your assistant every tool from every aggregated server.
Add more servers
Drop a qualien-mcp.config.json in your working directory (or pass --config <path>). Entries merge over the built-in defaults — redefine a key to change it, or set enabled: false to turn a default off. No new release needed.
{
"servers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/abs/path/to/allow"]
},
"sequential-thinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
},
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
},
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest"],
"tools": { "deny": ["browser_close"] }
}
}
}
See qualien-mcp.config.example.json for the full shape (command, args, env, enabled, tools.allow / tools.deny).
Built-in catalog
qualien-mcp ships a curated catalog of known servers (verified against npm), so you enable one by key with just your secrets — no need to remember packages or commands:
{
"servers": {
"chrome-devtools": { "enabled": true },
"postgres": { "enabled": true, "env": { "DATABASE_URI": "postgres://…" } },
"slack": { "enabled": true, "env": { "SLACK_MCP_XOXP_TOKEN": "xoxp-…" } }
}
}
Run npx qualien-mcp catalog to list them all with what each needs. Current catalog:
| Key | What | Needs |
|---|---|---|
playwright (default) |
Browser automation, DOM, screenshots | — |
filesystem (default) |
Read/edit project files | a dir to allow (default cwd) |
github |
PRs, issues, code review | your GitHub OAuth App + login (see below) |
sequential-thinking |
Structured reasoning / debugging | — |
memory |
Persistent knowledge graph | — |
chrome-devtools |
Network, console, perf, storage | — |
postgres |
SQL / validate backend data | DATABASE_URI |
mysql |
SQL / validate backend data | MySQL env |
slack |
Read/post Slack | SLACK_MCP_XOXP_TOKEN |
docker |
Manage containers | Docker daemon |
kubernetes |
Inspect/operate a cluster | kubeconfig |
openapi |
Drive any REST API from its spec | API_BASE_URL, OPENAPI_SPEC_PATH |
jira |
Read/update Jira issues | Atlassian API token env |
figma |
Read Figma designs | FIGMA_API_KEY |
use mounts a catalog server under a different key (e.g. two databases): { "db-prod": { "use": "postgres", "enabled": true, "env": {…} } }. Anything not in the catalog you still define in full (command/args or type/url).
Remote & OAuth servers (e.g. GitHub)
Downstreams can be remote (Streamable HTTP) as well as local. A remote server is { "type": "http", "url": "…" }, and if it needs OAuth, each user logs in with their own account — tokens are stored per user at ~/.qualien-mcp/credentials.json (0600) and are never bundled or shared.
GitHub's hosted MCP is the reference case. It does not support dynamic client registration, so you register your own GitHub OAuth App once and give qualien-mcp its Client ID:
- GitHub → Settings → Developer settings → OAuth Apps → New. Set the callback URL to
http://127.0.0.1:41999/callback. Copy the Client ID. - In
qualien-mcp.config.json:{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/", "oauth": true, "clientId": "<your client id>" } } } - Authorize (opens your browser, once):
npx qualien-mcp login github
After that the gateway connects to GitHub non-interactively (refreshing tokens as needed) and exposes github__* tools. If a remote server isn't logged in yet, the gateway skips it with a hint (run: npx qualien-mcp login github) and still serves everything else — it never blocks startup. Servers that do support dynamic registration need no clientId.
Safe by default
qualien-mcp enforces guardrails centrally, before forwarding a call — so they hold no matter what the downstream permits, and composite tools can't bypass them either:
- Databases are read-only —
postgres/mysqlcalls containing write/DDL SQL (INSERT/UPDATE/DELETE/DROP/…) are refused. Opt in with{ "postgres": { "readOnly": false } }. - Filesystem roots —
{ "filesystem": { "roots": ["./src", "./tests"] } }refuses any call whose path argument escapes those directories. - Destructive infra tools blocked —
docker/kubernetestools whose name looks destructive (delete/remove/prune/kill/…) are refused unless{ "allowDestructive": true }. - Plus per-server
tools.deny/tools.allowcuration.
Honest scope: these stop an LLM from accidentally doing damage. The SQL check is keyword-based (heuristic), not a parser — it is not adversarial sandboxing. Real isolation needs the downstream's own permissions or a container.
Composite QE tools
Beyond passthrough, qualien-mcp ships tools it implements itself (namespace qe__) that orchestrate several downstreams in one call — the QE payoff of a gateway.
qe__verify_api_vs_db — end-to-end API↔DB consistency in one call. Give it two sub-calls (namespaced tools you can discover via tools/list); it runs both and diffs the payloads:
{
"api": { "tool": "openapi__getUser", "arguments": { "id": 1 } },
"db": { "tool": "postgres__query", "arguments": { "sql": "select id, name from users where id = 1" } },
"match": "subset" // every field the DB returns must match the API (default)
}
// → { "match": false, "differences": [ { "path": "name", "api": "Ann", "db": "Bob" } ], … }
Composite tools appear only when their required downstreams are connected (qe__verify_api_vs_db needs a database server). More to come (repro-from-Jira, page-object-from-URL, flaky triage).
How it works
In one process, qualien-mcp is both an MCP server to your assistant and an MCP client to each downstream:
assistant ⇄ qualien-mcp ⇄ playwright-mcp
⇄ filesystem-mcp
⇄ …
tools/listfans out to every downstream, filters by your curation rules, and namespaces each as<server>__<tool>.tools/callroutes by that prefix to the owning server and passes the response straight through.- Resources and prompts are aggregated the same way when a downstream provides them.
- A downstream that fails to start is logged and skipped — the gateway still serves the rest.
- Logs go to stderr (stdout is the protocol); your host surfaces them in its MCP logs.
Roadmap
- v0.1 — Playwright + Filesystem, namespacing, curation, logging, clean lifecycle ✅
- Next — config-driven expansion (GitHub via its hosted OAuth MCP, DB, Sequential-Thinking, Memory, Chrome DevTools), composite QE tools (e.g. verify API ↔ DB consistency in one call), safety scoping.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。