spring-runtime-mcp
Read-only diagnostics for a local Spring Boot app's runtime state via authorized Actuator/OpenAPI endpoints; it never writes, restarts, or calls business endpoints.
Diagnose slow startup (
springboot_analyze_startup): returns Boot version, timeline span, slowest steps and parent/child chains from a non-destructive startup snapshot.Audit DB migrations (
springboot_check_migrations): Flyway/Liquibase records, states, checksums, ordering and failures, optionally compared against expected migrations.Detect source/runtime drift (
springboot_detect_drift): compares your expected beans, routes, migration version and profiles against runtime, with graded root-cause candidates (e.g. not restarted, profile mismatch).Diagnose health (
springboot_diagnose_health): overall status, failing component tree, sanitized structured errors and remediation codes for application/liveness/readiness groups.Inspect beans (
springboot_inspect_beans): matching beans, aliases, dependency graph, plus condition reports and blocking chains when a bean is missing.Inspect effective config (
springboot_inspect_config): redacted effective properties, binding beans, origins and active profiles — opt-in capability, values hidden by default.Search OpenAPI (
springboot_search_openapi): operations and schemas with inlined direct and second-order local$refs; no remote refs or full-document dumps.Verify routes (
springboot_verify_mappings): unified MVC/WebFlux mappings, paths, HTTP methods, controllers and handler descriptors.Consistent, safe responses: paginated and capped (16 KiB) with
ok/partial/unknownstates, warnings, redactions and next-action hints rather than guesses.
Provides read-only runtime diagnostics for a running Spring Boot application via Actuator and OpenAPI, including bean and conditional analysis, route verification, health diagnosis, migration status, startup timing, configuration origin inspection, OpenAPI search, and drift detection.
Spring Boot Runtime Diagnostics MCP
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:18081Use 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.
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
Available Tools
8 toolsspringboot_analyze_startupARead-onlyIdempotent
返回非破坏性启动快照中的版本、时间线跨度、最慢步骤及父子链;排查慢启动时调用,不用于当前请求延迟,也不执行排空缓冲区的 POST。
Inputs: cursor, maxDepth, targetId, maxResults, +3 more. Returns: data, errors, source, status, +9 more
springboot_check_migrationsBRead-onlyIdempotent
返回所有容器和迁移 Bean 的已报告迁移、校验和、顺序及异常状态;排查迁移失败或版本差异时调用,未报告的待执行状态需要可信预期,且不会执行 SQL 或迁移。
Inputs: state, cursor, engine, version, +6 more. Returns: data, errors, source, status, +9 more
springboot_detect_driftARead-onlyIdempotent
比较调用者从获权工作区提取的 Bean、路由、迁移版本和 Profile 预期,返回差异及分级根因候选;源码与运行行为不一致时调用,省略维度不参与比较,文件时间本身不能证明未重启。
Inputs: cursor, maxDepth, targetId, maxResults, +7 more. Returns: data, errors, source, status, +9 more
springboot_diagnose_healthARead-onlyIdempotent
返回整体健康状态、异常组件树及已脱敏的结构化错误和修复代码;依赖故障或探针异常时调用,组件下钻在本地完成,不获取日志、堆转储或原始异常栈。
Inputs: group, cursor, maxDepth, targetId, +4 more. Returns: data, errors, source, status, +9 more
springboot_inspect_beansARead-onlyIdempotent
返回匹配 Bean、别名及双向依赖图,并在 Bean 缺失时自动读取已授权条件报告、展开嵌套与传递阻塞链;排查注入或条件装配时调用,证据不足时返回 unknown,不猜测确切原因。
Inputs: cursor, maxDepth, targetId, contextId, +6 more. Returns: data, errors, source, status, +9 more
springboot_inspect_configARead-onlyIdempotent
返回双层强制脱敏后的生效属性、绑定 Bean、来源位置及 Active Profiles;排查属性绑定或配置覆盖时按前缀或键模式调用,能力默认关闭且不能用于获取秘密或导出全量配置。
Inputs: cursor, prefix, targetId, contextId, +3 more. Returns: data, errors, source, status, +9 more
springboot_search_openapiBRead-onlyIdempotent
返回匹配操作或 Schema,并默认内联直接与二阶同文档引用;确认接口契约时使用精确选择器调用,不执行业务接口、不返回全量文档,也不解析远程引用。
Inputs: cursor, targetId, httpMethod, maxResults, +4 more. Returns: data, errors, source, status, +9 more
springboot_verify_mappingsARead-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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
Read-only FastAPI container assessment with file evidence and an advisory deployment plan.
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.
Read-only production context for AI agents: Docker/K8s health, deploys, logs, traffic, code graph
Read-only ArcadeOps discovery for developer docs, OAuth, OpenAPI and synthetic sandbox.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides 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.10Apache 2.0
- AlicenseAqualityBmaintenanceRead-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.11122 npm1MIT
- AlicenseNot gradedqualityBmaintenanceExposes 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.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables 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