Skip to content
Conduit

mcp server

frontdex-mcp

MCP server for frontdex: gives Claude Code, Cursor, Antigravity, OpenCode and Hermes a living map of your frontend.

Prathmesh2000/frontdex-mcpcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

Before you start

  • Node.js 20 or newer
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "frontdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "frontdex-mcp"
      ]
    }
  }
}

same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12

Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs

README

synced Oct 25, 2026

frontdex-mcp

npm CI License: Apache-2.0

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 hooks

frontdex 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.

Tools

ToolReturns
catalogue_overviewCounts, routers, folders, most shared components
catalogue_searchComponents matching text and filters (uses:Button, is:shared, …)
catalogue_componentFull card: props, state, effects, renders, rendered by, pages
catalogue_dataflowProps in per parent → store reads → state/effects → API calls → props out
catalogue_impactEvery component and page affected by changing one component
catalogue_pageA route's layouts, params and component tree, or all routes
catalogue_stateRedux slices, contexts, zustand stores with readers and writers
catalogue_apiEvery API call grouped by endpoint
catalogue_stylesWhere a CSS class is defined and used, or a component's styles
catalogue_healthLeaks, render loops, unsafe async, stale deps, dead code, with fixes
catalogue_rescanIncremental rescan and what changed
catalogue_historyKnowledge-base snapshots, optionally for one component
catalogue_find_existingRun before creating a component: existing ones with a similar name or props
catalogue_duplicatesComponents that already look like duplicates of each other
catalogue_tokensDesign tokens and hard-coded values that should use them
catalogue_ownersCODEOWNERS, tests/stories and live git activity for a component
catalogue_adoptionUsage of a component across knowledge-base snapshots
catalogue_hooksCustom hooks with what they read and call, and who uses them
catalogue_diffThe current change vs a git ref: components/pages changed, pages reached, new issues
catalogue_testsUnit and E2E tests covering a component, page or file, with the command to run them
catalogue_enrich_nextComponents whose docs are missing or stale, with the facts needed to write them
catalogue_enrich_writeSave docs for a component (purpose, props and how to pass them, functions, usage, notes) into the knowledge base
catalogue_docsA 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.

↑↓ navigate openesc close