Nanostores MCP logo

Nanostores MCP

Analyzes Nanostores projects through static graphs, runtime events, store metrics, and documentation search.

Install Nanostores MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nanostores-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nanostores-mcp"
      ],
      "env": {
        "NANOSTORES_MCP_ROOT": "YOUR_VALUE_HERE",
        "NANOSTORES_MCP_ROOTS": "YOUR_VALUE_HERE",
        "WORKSPACE_FOLDER": "YOUR_VALUE_HERE",
        "WORKSPACE_FOLDER_PATHS": "YOUR_VALUE_HERE",
        "NANOSTORES_MCP_LOGGER_ENABLED": "YOUR_VALUE_HERE",
        "NANOSTORES_MCP_LOGGER_PORT": "YOUR_VALUE_HERE",
        "NANOSTORES_MCP_LOGGER_HOST": "YOUR_VALUE_HERE",
        "NANOSTORES_DOCS_ROOT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y nanostores-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Nanostores MCP MCP server scans Nanostores projects, maps store relationships, monitors runtime events, and searches Nanostores documentation. Its MCP tools combine AST-based analysis with optional data from @nanostores/logger, covering store structure, dependencies, activity, errors, and runtime coverage. Use it when investigating store architecture, tracing update effects, finding noisy stores, or checking framework-specific usage. It runs through npx and supports projects using React, Vue, Svelte, Angular, Solid, Preact, or Lit.

Use cases

  • Map store dependencies before changing application state
  • Trace which stores and components may react to an update
  • Find stores with frequent changes or high error rates
  • Compare static store structure with runtime activity
  • Search Nanostores documentation by store type

Key features

  • AST-based store and subscriber scanning
  • Dependency graphs and downstream impact analysis
  • Runtime event and activity monitoring
  • Noisy-store and coverage-gap detection
  • Nanostores documentation search
  • Project indexing and cache control

Tools12

What Nanostores MCP lets your agent do. Expand a tool for its parameters.

Self-reported~254 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/25 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · nanostores-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads240Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed12Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Nanostores MCP works

What Nanostores MCP does

The Nanostores MCP MCP server gives AI assistants an interface for examining applications built with Nanostores. It can scan source files to identify stores, subscribers, imports, exports, and dependency relationships, then provide focused views of that model. Use the project outline for a high-level inventory, or inspect an individual store for its type, location, usage patterns, and related files.

The server also supports runtime investigation when the application is connected to @nanostores/logger. It records events such as store mounting, unmounting, value changes, and action calls. These events support activity timelines, error and frequency analysis, and comparisons between the statically discovered graph and observed runtime behavior.

Documentation search is included for Nanostores guides, API references, and related material. Queries can be filtered by store kind, including types such as atoms, maps, computed stores, and persistent stores.

How it works

Static analysis uses the project source rather than requiring the application to be running. The scanner builds an index of Nanostores-related code and uses it for graph and store queries. Dependency tools can return a store’s nearby graph, while impact analysis follows downstream effects to show what may recompute or re-render after a change.

Runtime monitoring is optional. When enabled, the logger bridge receives events from @nanostores/logger; the server turns them into health statistics, activity data, noisy-store findings, and runtime coverage comparisons. The nanostores_ping tool reports server health and logger bridge status, and nanostores_clear_cache forces the project index to be rebuilt.

Framework-aware scanning covers React, Vue, Svelte, and Angular patterns described by the project. Vue single-file components and Svelte script blocks have dedicated parsing behavior, while Angular analysis includes Nanostores service injection and store-use calls. The README also identifies the server as framework-agnostic for other frameworks that use Nanostores.

Setup and configuration

Run the server directly with npx nanostores-mcp, or install it globally with npm or pnpm. Node.js 20 or later is required, and the nanostores package is a required peer dependency for static analysis. Install @vue/compiler-sfc for Vue SFC scanning, svelte for Svelte file scanning, and @nanostores/logger for runtime monitoring.

The project root defaults to the current working directory. Set NANOSTORES_MCP_ROOT for one root or NANOSTORES_MCP_ROOTS for multiple roots; editor-provided workspace variables can also supply roots. Documentation paths and file patterns can be configured with NANOSTORES_DOCS_ROOT and NANOSTORES_DOCS_PATTERNS. Runtime collection can be disabled with NANOSTORES_MCP_LOGGER_ENABLED; the logger bridge host and port are configurable.

The README provides stdio configuration examples for Claude Desktop, VS Code with GitHub Copilot Agent mode, Cursor, Zed, Windsurf, and Claude Code. In multi-root setups, pass an explicit project root to avoid selecting the wrong workspace.

Tools and capabilities

Nanostores MCP MCP server exposes tools for:

  • Scanning projects and generating project outlines.
  • Summarizing stores and expanding dependency neighborhoods.
  • Tracing downstream impact from a changed store.
  • Reporting runtime health, store activity, noisy stores, and static/runtime coverage gaps.
  • Searching Nanostores documentation by text, store kind, or both.
  • Checking server status and clearing the analysis cache.

Limitations and notes

Runtime features depend on @nanostores/logger and the logger bridge. Without optional parser packages, unsupported Vue or Svelte file types are skipped rather than analyzed. Static results describe code found by the scanner and do not replace observations from a running application. The logger host is restricted to local addresses listed in the configuration documentation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Nanostores MCP

Nanostores MCP is an MCP server that connects AI assistants to Nanostores project source, optional runtime logger events, and Nanostores documentation. Its main tools scan stores, inspect summaries, map dependencies, analyze impact, report runtime activity, identify noisy stores, compare coverage, search docs, check health, and clear the index cache.

Run `npx nanostores-mcp`, or install it globally with `npm install -g nanostores-mcp` or `pnpm add -g nanostores-mcp`. Node.js 20 or later is required, and `nanostores` must be installed for static analysis.

Yes, Nanostores MCP works with Cursor through a stdio entry in `.cursor/mcp.json` or the global Cursor MCP configuration. The README provides an `npx -y nanostores-mcp` command configuration for this client.

Install `@nanostores/logger` and connect the application to the server's logger bridge. Runtime collection is enabled by default; `NANOSTORES_MCP_LOGGER_ENABLED` can disable it, while `NANOSTORES_MCP_LOGGER_HOST` and `NANOSTORES_MCP_LOGGER_PORT` configure the bridge.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNanostores MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nanostores-mcp?style=directory)](https://allmcps.com/mcp/nanostores-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/nanostores-mcp"><img src="https://allmcps.com/api/badge/nanostores-mcp?style=directory" alt="Nanostores MCP on AllMCPs" /></a>