Skip to main content
Glama
wejack639

mcp-jumpserver

by wejack639

mcp-jumpserver

面向 Codex 的 JumpServer STDIO MCP。使用 JumpServer URL、用户名和密码自动登录并缓存 API Token,无需手工创建 Token。

工具

  • test_jumpserver_login:测试用户名密码登录,不返回 Token。

  • list_jumpserver_databases:查询数据库资产。

  • list_jumpserver_database_accounts:查询资产下的账号,不返回密码。

  • get_jumpserver_temporary_database_credential:签发数据库代理临时用户名和密码, 与 JumpServer Web 终端的“数据库连接信息”一致。

  • get_jumpserver_configured_database_credentials:无参数,一次签发配置数组内所有数据库资产的 临时用户名和密码。

Related MCP server: Supabase MCP Server

安装

uv sync

建议使用权限最小化的独立 JumpServer 用户,不要使用超级管理员。签发临时连接凭证需要 该用户拥有目标资产、账号和协议的登录授权;登录 ACL 的审批或 MFA 策略仍然有效。 本 MCP 不提供底层账号静态密码读取工具,也不需要 accounts.view_accountsecret 权限。

配置 Codex

codex mcp add jumpserver -- \
  /absolute/path/to/mcp-jumpserver/.venv/bin/mcp-jumpserver

也可以写入 ~/.codex/config.toml

[mcp_servers.jumpserver]
command = "/absolute/path/to/mcp-jumpserver/.venv/bin/mcp-jumpserver"
startup_timeout_sec = 20
tool_timeout_sec = 60
enabled = true

[mcp_servers.jumpserver.env]
JUMPSERVER_URL = "https://jumpserver.example.com"
JUMPSERVER_USERNAME = "codex-service-user"
JUMPSERVER_PASSWORD = "change-me"
JUMPSERVER_VERIFY_SSL = "true"
JUMPSERVER_DATABASE_ASSETS = '["DB-正式mysql-A", "DB-正式mysql-B"]'
# 可选:JUMPSERVER_ORG_ID = "组织 UUID"

配置后在 Codex/ChatGPT 桌面端重启该 MCP,再调用 test_jumpserver_login

获取数据库临时凭证

日常直接无参数调用:

调用 get_jumpserver_configured_database_credentials

结果中的 credentials 按配置顺序返回,消费前必须确认 errors 为空。需要临时查询配置外资产时, 再按资产精确名称调用单资产工具:

调用 get_jumpserver_temporary_database_credential:
{"asset":"DB-正式mysql-A","protocol":"mysql"}

调用 get_jumpserver_temporary_database_credential:
{"asset":"DB-正式mysql-B","protocol":"mysql"}

返回的 connection.usernameconnection.password 是 JumpServer 数据库代理的临时凭证; connection.hostconnection.portconnection.database 是完整连接地址。如果资产授权了多个 账号,先指定 account 的用户名或 UUID。

安全说明

  • Token 仅缓存在 MCP 进程内存中,收到 HTTP 401 后自动重新登录一次。

  • 日志和异常不会输出 JumpServer 密码或 Token。

  • MCP 只签发 JumpServer 数据库代理临时凭据,不读取底层数据库账号的静态密码。

  • get_jumpserver_temporary_database_credential 返回短期明文连接凭证,也仅应在用户明确授权时调用。

测试

uv run pytest
uv run ruff check .
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables secure database interactions with MySQL, PostgreSQL, and SQLite through granular permissions, multi-database support, and cloud-ready SSL/TLS connections. Supports read-only modes, schema-specific permissions, and transaction management for safe database operations.
    10
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables secure interaction with Supabase databases via the PostgREST API, supporting full CRUD operations and stored procedure calls. It utilizes the Dedalus MCP framework to provide encrypted credential handling and just-in-time token exchange.
    4
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides secure access to Supabase databases via PostgREST API and management tools for projects, schemas, branches, logs, and code generation.
    MIT

View all related MCP servers

Related MCP Connectors

  • Issue, rotate and revoke scoped API-key passes for 25+ providers — the agent never sees a real key

  • Connect to PlanetScale databases, branches, schema, query insights, and execute SQL

  • Agent payments, API key vaulting, and governed mandates. Agents spend within user-defined limits.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wejack639/mcp-jumpserver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server