frontdex-mcp
Provides tools for analyzing CSS classes and component styles, including where classes are defined and used.
Provides tools for indexing and analyzing React applications, including components, pages, data flow, global state, API calls, styles, health issues, and history.
Provides tools for analyzing Redux slices, including readers and writers, as part of the global state index.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
frontdex-mcp
MCP server for Frontdex. It gives coding agents (Claude Code, Cursor, OpenCode, Antigravity, Hermes and any other MCP client) the project's living frontend index: components, pages, data flow, global state, API calls, styles, health issues and history.
flowchart LR
Agent[Coding agent] -- stdio JSON-RPC --> MCP[frontdex-mcp]
MCP -- createTools · loadConfig --> Core[frontdex<br/>installed in your app]
Core --> Src[your source]The server holds no analysis code of its own. Every answer comes from the core package's public API, and the core is a peer dependency, so the server always reads the index through the same version your project uses.
Install
Both packages are devDependencies of your app:
npm install --save-dev frontdex frontdex-mcp # or pnpm add -D / yarn add -D / bun add -d
npx frontdex agents # writes .mcp.json, Cursor and OpenCode config, rules and hooksfrontdex agents registers npx frontdex mcp, which starts this package from your project, for Claude Code (.mcp.json), Cursor (.cursor/mcp.json), OpenCode (opencode.json), Antigravity (.agents/mcp_config.json) and, with --user-config, Hermes (~/.hermes/config.yaml). To register it by hand, add a stdio server named frontdex:
{ "mcpServers": { "frontdex": { "type": "stdio", "command": "npx", "args": ["frontdex", "mcp"] } } }The exact file and format for each agent, plus the rules that tell the agent when to call these tools, are in frontdex's agent guide. frontdex-mcp -C <dir> (or frontdex mcp -C <dir>) targets another project root, for agents that start servers outside the project.
Related MCP server: assurance-memory
Tools
Tool | Returns |
| Counts, routers, folders, most shared components |
| Components matching text and filters ( |
| Full card: props, state, effects, renders, rendered by, pages |
| Props in per parent → store reads → state/effects → API calls → props out |
| Every component and page affected by changing one component |
| A route's layouts, params and component tree, or all routes |
| Redux slices, contexts, zustand stores with readers and writers |
| Every API call grouped by endpoint |
| Where a CSS class is defined and used, or a component's styles |
| Leaks, render loops, unsafe async, stale deps, dead code, with fixes |
| Incremental rescan and what changed |
| Knowledge-base snapshots, optionally for one component |
| Run before creating a component: existing ones with a similar name or props |
| Components that already look like duplicates of each other |
| Design tokens and hard-coded values that should use them |
| CODEOWNERS, tests/stories and live git activity for a component |
| Usage of a component across knowledge-base snapshots |
| Custom hooks with what they read and call, and who uses them |
| The current change vs a git ref: components/pages changed, pages reached, new issues |
| Unit and E2E tests covering a component, page or file, with the command to run them |
| Components whose docs are missing or stale, with the facts needed to write them |
| Save docs for a component (purpose, props and how to pass them, functions, usage, notes) into the knowledge base |
| A component's saved docs, or docs coverage for the project |
The server speaks the stateless 2026-07-28 MCP revision and the older initialize-handshake revisions (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05).
Contributing
See CONTRIBUTING.md; coding agents should read AGENTS.md. Short version: npm ci && npm test. The tests run against the frontdex devDependency and its examples/next-app. Tool behaviour lives in frontdex src/tools.js; this repo holds the tool schemas and the transport.
License and credit
Open source under the Apache License 2.0, created by Prathmesh Agrawal. Use it, change it and ship it, commercially or not; if you redistribute it or a modified version, keep the LICENSE and NOTICE files and mark the files you changed. Versions up to 0.2.x were published under MIT and remain available under it.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI coding tools to query your live codebase for routes, import graph, domain context, and blast radius, eliminating hallucinations about project structure.80MIT
- FlicenseNot gradedqualityBmaintenanceEnables coding agents to perform read-only source investigation via a local SQLite index, offering status, search, backlog, context, impact, and drift tools for TypeScript, JavaScript, and Java codebases.-
- AlicenseAqualityBmaintenanceEnables users to build and continuously refresh a code index of a repository, then query it to answer architecture, impact, tracing and log questions with verifiable evidence lines. Also checks Java, Kotlin and TypeScript/JavaScript names against real sources and classpaths, and supports commit review and Minecraft/JVM analysis directly from an agent session.51Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and terminal users to query codebases for callers, impact, tests, dependencies, and refactor previews using static AST analysis, with every match accounted for and uncertain relationships clearly marked.1,016 npm2MIT