Skip to main content
Glama

qualien-mcp

一个 复合 MCP 网关 —— 它将多个 Model Context Protocol 服务器聚合到一个连接后面,专为 SDET / QE 工作流打造。为你的 AI 助手添加一个服务器,而不是五个。

npx qualien-mcp

开箱即用,它提供 QE 入门组合 —— Playwright MCP(浏览器自动化、DOM、截图)和 Filesystem MCP(读取/编辑项目文件、页面对象、测试工具)—— 零配置。工具以 playwright__… 和 filesystem__… 的命名空间暴露给你的助手。

为什么需要网关?

你的助手已经可以直接连接许多 MCP 服务器 —— 因此网关的价值在于它能做到一堆服务器做不到的事情:

  • 一个端点,可添加到任何客户端(Claude Code、Claude Desktop、Cursor、……)。

  • 精选 —— 可按服务器和按工具启用/禁用。更少、命名更好的工具 = 模型能更好地选择工具(一次倾倒 200 个工具反而会让它更糟)。

  • 统一的路由/日志面 —— 每次调用都会将下游、工具和延迟记录到 stderr。

  • 干净的生命周期 —— 将每个下游作为子进程生成,并在退出时全部关闭(不会留下孤立的浏览器进程)。

  • 为 QE 定制 —— 一个主观的 SDET 工具集,而非通用代理。

Related MCP server: Multi-MCP Hub

与你的助手一起使用

Claude Code(.mcp.json 或用户设置):

{
  "mcpServers": {
    "qualien": { "command": "npx", "args": ["-y", "qualien-mcp"] }
  }
}

Claude Desktop(claude_desktop_config.json)—— 在 mcpServers 下结构相同。

这一条配置就为你的助手提供了来自所有聚合服务器的每个工具。

添加更多服务器

在工作目录中放置 qualien-mcp.config.json(或传递 --config <path>)。条目会合并覆盖内置默认值 —— 重新定义键以更改它,或设置 enabled: false 关闭默认项。无需发布新版本。

{
  "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"] }
    }
  }
}

完整结构(command、args、env、enabled、tools.allow / tools.deny)参见 qualien-mcp.config.example.json。

内置目录

qualien-mcp 附带一个精选的已知服务器目录(已针对 npm 验证),因此你只需使用键和你的机密即可启用一个服务器 —— 无需记住包或命令:

{
  "servers": {
    "chrome-devtools": { "enabled": true },
    "postgres":  { "enabled": true, "env": { "DATABASE_URI": "postgres://…" } },
    "slack":     { "enabled": true, "env": { "SLACK_MCP_XOXP_TOKEN": "xoxp-…" } }
  }
}

运行 npx qualien-mcp catalog 可列出所有服务器及其所需项。当前目录:

Key

What

Needs

playwright (default)

浏览器自动化、DOM、截图

—

filesystem (default)

读取/编辑项目文件

允许访问的目录(默认为 cwd)

github

PR、问题、代码审查

你的 GitHub OAuth 应用 + login(见下文)

sequential-thinking

结构化推理 / 调试

—

memory

持久化知识图谱

—

chrome-devtools

网络、控制台、性能、存储

—

postgres

SQL / 验证后端数据

DATABASE_URI

mysql

SQL / 验证后端数据

MySQL 环境变量

slack

读取/发布 Slack

SLACK_MCP_XOXP_TOKEN

docker

管理容器

Docker 守护进程

kubernetes

检查/操作集群

kubeconfig

openapi

根据规范驱动任意 REST API

API_BASE_URL, OPENAPI_SPEC_PATH

jira

读取/更新 Jira 问题

Atlassian API 令牌环境变量

figma

读取 Figma 设计

FIGMA_API_KEY

use 可将目录服务器挂载到不同的键下(例如两个数据库):{ "db-prod": { "use": "postgres", "enabled": true, "env": {…} } }。不在目录中的任何内容你仍需完整定义(command/args 或 type/url)。

远程与 OAuth 服务器(例如 GitHub)

下游既可以是远程(Streamable HTTP),也可以是本地。远程服务器是 { "type": "http", "url": "…" },如果需要 OAuth,每个用户使用自己的账户登录 —— 令牌按用户存储在 ~/.qualien-mcp/credentials.json(0600),绝不会打包或共享。

GitHub 托管的 MCP 是参考案例。它不支持动态客户端注册,因此你需要一次性注册自己的 GitHub OAuth 应用,并将客户端 ID 提供给 qualien-mcp:

  1. GitHub → Settings → Developer settings → OAuth Apps → New。将回调 URL 设置为 http://127.0.0.1:41999/callback。复制 Client ID。

  2. 在 qualien-mcp.config.json 中:

    {
      "servers": {
        "github": {
          "type": "http",
          "url": "https://api.githubcopilot.com/mcp/",
          "oauth": true,
          "clientId": "<your client id>"
        }
      }
    }
  3. 授权(会打开你的浏览器,仅一次):

    npx qualien-mcp login github

之后,网关以非交互方式连接 GitHub(按需刷新令牌),并暴露 github__* 工具。如果远程服务器尚未登录,网关会跳过并给出提示(run: npx qualien-mcp login github),并且仍然提供所有其他服务 —— 它绝不会阻塞启动。支持动态注册的服务器则无需 clientId。

默认安全

qualien-mcp 在转发调用之前集中执行护栏 —— 因此无论下游允许什么,它们都有效,复合工具也无法绕过:

  • 数据库只读 —— 包含写入/DDL SQL(INSERT/UPDATE/DELETE/DROP/…)的 postgres/mysql 调用会被拒绝。可通过 { "postgres": { "readOnly": false } } 选择加入。

  • 文件系统根目录 —— { "filesystem": { "roots": ["./src", "./tests"] } } 会拒绝任何路径参数逃出这些目录的调用。

  • 阻止破坏性基础设施工具 —— 名称看似具有破坏性的 docker/kubernetes 工具(delete/remove/prune/kill/…)会被拒绝,除非设置 { "allowDestructive": true }。

  • 外加按服务器的 tools.deny / tools.allow 配置。

诚实说明:这些措施能防止 LLM 意外造成损害。SQL 检查基于关键词(启发式),而非解析器 —— 它不是对抗性沙箱。真正的隔离需要下游自身的权限或容器。

复合 QE 工具

除了透传之外,qualien-mcp 还提供自己实现的工具(命名空间 qe__),可在一次调用中编排多个下游 —— 这是网关对 QE 的回报。

qe__verify_api_vs_db —— 一次调用即可实现 API↔DB 的端到端一致性。为它提供两个子调用(你可以通过 tools/list 发现的命名空间工具);它会同时运行两者并对比负载:

{
  "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" } ], … }

复合工具仅在其所需的下游已连接时出现(qe__verify_api_vs_db 需要 database 服务器)。更多功能即将推出(repro-from-Jira、page-object-from-URL、flaky triage)。

工作原理

在单个进程中,qualien-mcp 既是面向你助手的 MCP 服务器,又是面向每个下游的 MCP 客户端:

assistant ⇄ qualien-mcp ⇄ playwright-mcp
                         ⇄ filesystem-mcp
                         ⇄ …
  • tools/list 分发到每个下游,根据你的配置规则进行过滤,并将每个工具命名为 <server>__<tool>。

  • tools/call 根据该前缀路由到所属服务器,并将响应直接传递回去。

  • 当下游提供资源和提示时,也以相同方式聚合。

  • 无法启动的下游会被记录并跳过 —— 网关仍会提供其余服务。

  • 日志输出到 stderr(stdout 是协议通道);你的宿主会在其 MCP 日志中展示它们。

路线图

  • v0.1 — Playwright + Filesystem、命名空间、精选、日志、干净的生命周期 ✅

  • 下一步 —— 配置驱动的扩展(通过其托管的 OAuth MCP 接入 GitHub、DB、Sequential-Thinking、Memory、Chrome DevTools)、复合 QE 工具(例如一次调用验证 API ↔ DB 一致性)、安全范围界定。

许可证

MIT

Available Tools

39 tools
filesystem__create_directoryCreate DirectoryA
Idempotent

Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories.

Inputs: path (required). Returns: content

filesystem__directory_treeDirectory TreeB
Read-only

Get a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories. Files have no children array, while directories always have a children array (which may be empty). The output is formatted with 2-space indentation for readability. Only works within allowed directories.

Inputs: path (required), excludePatterns. Returns: content

filesystem__edit_fileEdit FileA
Destructive

Make line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. Only works within allowed directories.

Inputs: path (required), edits (required), dryRun. Returns: content

filesystem__get_file_infoGet File InfoA
Read-only

Retrieve detailed metadata about a file or directory. Returns comprehensive information including size, creation time, last modified time, permissions, and type. This tool is perfect for understanding file characteristics without reading the actual content. Only works within allowed directories.

Inputs: path (required). Returns: content

filesystem__list_allowed_directoriesList Allowed DirectoriesA
Read-only

Returns the list of directories that this server is allowed to access. Subdirectories within these allowed directories are also accessible. Use this to understand which directories and their nested paths are available before trying to access files.

Inputs: no named parameters. Returns: content

filesystem__list_directoryList DirectoryA
Read-only

Get a detailed listing of all files and directories in a specified path. Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. This tool is essential for understanding directory structure and finding specific files within a directory. Only works within allowed directories.

Inputs: path (required). Returns: content

filesystem__list_directory_with_sizesList Directory with SizesB
Read-only

Get a detailed listing of all files and directories in a specified path, including sizes. Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. This tool is useful for understanding directory structure and finding specific files within a directory. Only works within allowed directories.

Inputs: path (required), sortBy. Returns: content

filesystem__move_fileMove FileA
Destructive

Move or rename files and directories. Can move files between directories and rename them in a single operation. If the destination exists, the operation will fail. Works across different directories and can be used for simple renaming within the same directory. Both source and destination must be within allowed directories.

Inputs: source (required), destination (required). Returns: content

filesystem__read_fileRead File (Deprecated)A
Read-only

Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.

Inputs: path (required), head, tail. Returns: content

filesystem__read_media_fileRead Media FileA
Read-only

Read a file and return it as a base64-encoded content block with its MIME type. Image and audio files are returned as image/audio content; any other file type is returned as an embedded resource. Only works within allowed directories.

Inputs: path (required). Returns: content

filesystem__read_multiple_filesRead Multiple FilesA
Read-only

Read the contents of multiple files simultaneously. This is more efficient than reading files one by one when you need to analyze or compare multiple files. Each file's content is returned with its path as a reference. Failed reads for individual files won't stop the entire operation. Only works within allowed directories.

Inputs: paths (required). Returns: content

filesystem__read_text_fileRead Text FileA
Read-only

Read the complete contents of a file from the file system as text. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Use the 'head' parameter to read only the first N lines of a file, or the 'tail' parameter to read only the last N lines of a file. Operates on the file as text regardless of extension. Only works within allowed directories.

Inputs: path (required), head, tail. Returns: content

filesystem__search_filesSearch FilesA
Read-only

Recursively search for files and directories matching a pattern. The patterns should be glob-style patterns that match paths relative to the working directory. Use pattern like '.ext' to match files in current directory, and '**/.ext' to match files in all subdirectories. Returns full paths to all matching items. Great for finding files when you don't know their exact location. Only searches within allowed directories.

Inputs: path (required), pattern (required), excludePatterns. Returns: content

filesystem__write_fileWrite FileA
DestructiveIdempotent

Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding. Only works within allowed directories.

Inputs: path (required), content (required). Returns: content

playwright__browser_clickC
Destructive

Perform click on a web page

Inputs: target (required), button, element, modifiers, +1 more.

playwright__browser_closeC
Destructive

Close the page

Inputs: no named parameters.

playwright__browser_console_messagesC
Read-only

Returns all console messages

Inputs: level (required), all, filename.

playwright__browser_dragB
Destructive

Perform drag and drop between two elements

Inputs: endTarget (required), startTarget (required), endElement, startElement.

playwright__browser_dropA
Destructive

Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.

Inputs: target (required), data, paths, element.

playwright__browser_emulate_mediaA
Destructive

Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.

Inputs: media, contrast, colorScheme, forcedColors, +1 more.

playwright__browser_evaluateC
Destructive

Evaluate JavaScript expression on page or element

Inputs: function (required), target, element, filename.

playwright__browser_file_uploadC
Destructive

Upload one or multiple files

Inputs: paths.

playwright__browser_fill_formB
Destructive

Fill multiple form fields

Inputs: fields (required).

playwright__browser_findA
Read-only

Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.

Inputs: text, regex, filename.

playwright__browser_handle_dialogB
Destructive

Handle a dialog

Inputs: accept (required), promptText.

playwright__browser_hoverC
Destructive

Hover over element on page

Inputs: target (required), element.

playwright__browser_navigateC
Destructive

Navigate to a URL

Inputs: url (required).

playwright__browser_navigate_backA
Destructive

Go back to the previous page in the history

Inputs: no named parameters.

playwright__browser_network_requestA
Read-only

Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.

Inputs: index (required), part, filename.

playwright__browser_network_requestsA
Read-only

Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.

Inputs: static (required), filter, filename.

playwright__browser_press_keyC
Destructive

Press a key on the keyboard

Inputs: key (required).

playwright__browser_resizeA
Destructive

Resize the browser window

Inputs: width (required), height (required).

playwright__browser_run_code_unsafeA
Destructive

Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.

Inputs: code, filename.

playwright__browser_select_optionB
Destructive

Select an option in a dropdown

Inputs: target (required), values (required), element.

playwright__browser_snapshotB
Read-only

Capture accessibility snapshot of the current page, this is better than screenshot

Inputs: boxes, depth, target, filename.

playwright__browser_tabsB
Destructive

List, create, close, or select a browser tab.

Inputs: action (required), url, index.

playwright__browser_take_screenshotA
Read-only

Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.

Inputs: scale (required), type, target, element, +2 more.

playwright__browser_typeC
Destructive

Type text into editable element

Inputs: text (required), target (required), slowly, submit, +1 more.

playwright__browser_wait_forB
Read-only

Wait for text to appear or disappear or a specified time to pass

Inputs: text, time, textGone.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 39 tools

    Disambiguation4/5

    Most tools target clearly distinct actions (click, hover, drag, navigate, etc.), but a few pairs overlap: read_file is a deprecated duplicate of read_text_file, list_directory essentially duplicates list_directory_with_sizes, and browser_network_requests vs browser_network_request differ only by singular/plural. Descriptions do enough to disambiguate in most cases.

    Naming Consistency4/5

    Names follow a consistent snake_case verb_noun pattern (read_text_file, write_file, create_directory, browser_navigate, browser_click) cleanly separated by filesystem__/playwright__ prefixes. Minor deviations like the legacy read_file vs read_text_file and the noun-first browser_console_messages slightly break the pattern.

    Tool Count3/5

    39 tools is heavy for a single server, though it reflects two bundled domains (filesystem ~14, playwright ~25). Each namespace is reasonable on its own, but combined the surface is on the large side and pushes toward the 'heavy' band.

    Completeness3/5

    Playwright coverage is thorough (navigation, interaction, forms, network, dialogs, screenshots, tabs), and filesystem covers read/write/edit/list/search/tree/move/info. However, the filesystem domain has a notable gap: there is no delete/remove tool for files or directories, forcing agents into dead ends for cleanup.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Aggregates multiple MCP servers behind a single, secure endpoint with unified tool/resource discovery, OAuth authentication, and resilient request routing. Enables users to manage and interact with multiple MCP backends through one centralized interface with load balancing and circuit breakers.
      2
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A centralized gateway and router that integrates multiple MCP servers into a single endpoint with built-in policy enforcement and secret management. It features a Web GUI for managing tool access, audit logs, and multi-environment configurations across various sub-servers.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      A gateway that aggregates multiple MCP servers into a single endpoint, namespacing their tools and forwarding calls, so an agent connects to one MCP to access the entire stack.
      MIT