Skip to main content
Glama
spring-runtime-mcp

spring-runtime-mcp

Spring Boot Runtime Diagnostics MCP

Chinese README

Give your coding assistant read-only access to the runtime state of a local Spring Boot application. Eight MCP tools use authorized Actuator and OpenAPI data to diagnose issues such as missing beans, unregistered routes, and slow startup.

Listed in Awesome MCP Servers (Developer Tools) · View the tools on Glama

What can it check?

Your question

What it provides

Why was a Bean not created?

Beans, dependencies and condition reports, with blocking chains when evidence is sufficient

Is this route registered?

Actual paths, HTTP methods, Controllers and MVC/WebFlux mappings

What is unhealthy?

Visible components and liveness/readiness status

Did a migration fail?

Reported Flyway/Liquibase records, states and checksums

What made startup slow?

Slow steps and their parent chains

Where did a configuration value come from?

Sources for registered properties; configuration diagnostics require opt-in

Is this API in OpenAPI?

Operations, schemas and references within the document

Does the process match my expectations?

Compare the Bean, route, migration version and profile expectations you supply

For example, ask: “Check whether GET /orders/{id} is registered and tell me which Controller handles it.” The server reads mapping metadata without calling the business endpoint.

Related MCP server: ansible-mcp

Get started

Try the demo without a Spring Boot app

The synthetic route demo uses the public package and bundled data to show which controller handles a route. It runs without a Spring process or an MCP client.

Connect an MCP client to your app

You need Python 3.11+, uv and permission to read a local Spring Boot application's management endpoints. Confirm the endpoints and permissions in the target setup guide. These commands use 0.2.14 Alpha.

uvx --default-index https://pypi.org/simple spring-runtime-mcp==0.2.14 --version
uvx --default-index https://pypi.org/simple spring-runtime-mcp==0.2.14 --base-url http://127.0.0.1:18081

Use the second command as your MCP client's STDIO server command. In a terminal it waits for client requests. Follow the English first-query guide; additional client configuration templates cover other clients.

Share first-query feedback

Boundaries

The server connects only to loopback addresses, uses fixed endpoints and supports optional Bearer authentication from a named environment variable. OpenAPI uses /actuator/openapi. Configuration diagnostics are disabled by default and require explicit opt-in via CLI flags (--config-prefix, --config-property, --config-profiles). When enabled, values remain hidden unless both --config-allow-values and the tool’s includeValues=true are set. Output is sanitized, and each tool response is capped at 16 KiB. Missing evidence is reported as partial/unknown.

Tools do not write to the target, restart applications, or read heap dumps or raw logs. The complete Boot/Java/client matrix, Windows/macOS and production-cluster compatibility remain unverified.

Documentation · Tool contract · Source facts · Development and checks

Apache-2.0 · Contributing · Report a security issue

Available Tools

8 tools
springboot_analyze_startupA
Read-onlyIdempotent

返回非破坏性启动快照中的版本、时间线跨度、最慢步骤及父子链;排查慢启动时调用,不用于当前请求延迟,也不执行排空缓冲区的 POST。

Inputs: cursor, maxDepth, targetId, maxResults, +3 more. Returns: data, errors, source, status, +9 more

springboot_check_migrationsB
Read-onlyIdempotent

返回所有容器和迁移 Bean 的已报告迁移、校验和、顺序及异常状态;排查迁移失败或版本差异时调用,未报告的待执行状态需要可信预期,且不会执行 SQL 或迁移。

Inputs: state, cursor, engine, version, +6 more. Returns: data, errors, source, status, +9 more

springboot_detect_driftA
Read-onlyIdempotent

比较调用者从获权工作区提取的 Bean、路由、迁移版本和 Profile 预期,返回差异及分级根因候选;源码与运行行为不一致时调用,省略维度不参与比较,文件时间本身不能证明未重启。

Inputs: cursor, maxDepth, targetId, maxResults, +7 more. Returns: data, errors, source, status, +9 more

springboot_diagnose_healthA
Read-onlyIdempotent

返回整体健康状态、异常组件树及已脱敏的结构化错误和修复代码;依赖故障或探针异常时调用,组件下钻在本地完成,不获取日志、堆转储或原始异常栈。

Inputs: group, cursor, maxDepth, targetId, +4 more. Returns: data, errors, source, status, +9 more

springboot_inspect_beansA
Read-onlyIdempotent

返回匹配 Bean、别名及双向依赖图,并在 Bean 缺失时自动读取已授权条件报告、展开嵌套与传递阻塞链;排查注入或条件装配时调用,证据不足时返回 unknown,不猜测确切原因。

Inputs: cursor, maxDepth, targetId, contextId, +6 more. Returns: data, errors, source, status, +9 more

springboot_inspect_configA
Read-onlyIdempotent

返回双层强制脱敏后的生效属性、绑定 Bean、来源位置及 Active Profiles;排查属性绑定或配置覆盖时按前缀或键模式调用,能力默认关闭且不能用于获取秘密或导出全量配置。

Inputs: cursor, prefix, targetId, contextId, +3 more. Returns: data, errors, source, status, +9 more

springboot_search_openapiB
Read-onlyIdempotent

返回匹配操作或 Schema,并默认内联直接与二阶同文档引用;确认接口契约时使用精确选择器调用,不执行业务接口、不返回全量文档,也不解析远程引用。

Inputs: cursor, targetId, httpMethod, maxResults, +4 more. Returns: data, errors, source, status, +9 more

springboot_verify_mappingsA
Read-onlyIdempotent

返回统一的 MVC/WebFlux 路由、处理器和方法描述符;排查路径、方法或 Controller 未注册时调用,不向业务 URL 发请求,也不把注册匹配等同于请求一定成功。

Inputs: cursor, targetId, contextId, httpMethod, +3 more. Returns: data, errors, source, status, +9 more

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool targets a distinct diagnostic dimension (health, startup, migrations, drift, beans, config, OpenAPI, mappings), and descriptions add clear boundaries such as 'not for current request latency' or 'does not execute SQL'. The only real overlap is springboot_detect_drift, which compares beans/routes/migrations/profiles and thus partially duplicates inspect_beans, verify_mappings, and check_migrations, though its expectation-diff framing distinguishes it.

    Naming Consistency5/5

    All eight tools follow the same springboot_<verb>_<noun> pattern with consistent verb choice (diagnose, analyze, check, detect, inspect, search, verify). No casing or style deviations.

    Tool Count5/5

    Eight tools is well within the ideal 3-15 range and each maps to a distinct Spring runtime diagnostic concern. No filler or redundant tools are present.

    Completeness4/5

    The surface covers the core runtime diagnostic lifecycle: health, startup timing, migrations, bean graph, config, route registration, contract lookup, and drift comparison. Gaps exist (no metrics, scheduled tasks, filters/security chain, connection pools, or log/thread-dump access), but the latter are explicitly out of scope by design, leaving only minor workarounds.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Provides AI coding agents with structured, evidence-based diagnostics about the local development environment, detecting tech stack, runtime mismatches, dependency state, services, ports, and Git status without exposing secrets or using network calls.
      10
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Read-only server that reports what is actually true in a local Ansible checkout: the option specs of installed modules, task-argument validity checks, role interfaces, redacted inventory, play structure, effective config, requirements drift, and which tasks a collection upgrade would break. It lets coding agents verify specs and arguments against the installed collections before writing anything, without running plays, connecting to managed hosts, or supplying vault secrets.
      11
      122 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes three read-only tools that list local Agent and MCP runtime candidates, inspect running processes, and check a live runtime against an approved artifact expectation. Returns explicit verdicts such as matched, stale, leaked, conflict, unknown, or not running without exposing argv, environment values, or file contents.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables read-only semantic analysis of 4.x route-based projects: composed mounted paths, middleware execution order, validators, RPC types, request tracing, change-impact analysis and 36 lint rules, plus a headless CLI for CI quality gates. Tooling stays project-local with no installed dependencies, so agents can query a route table, diagnose 404s and gate changes without touching the codebase.
      MIT