# Nanostores MCP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Valyay/nanostores-mcp  
**GitHub Stars:** 3  
**npm Downloads (last month):** 240  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nanostores-mcp

## Description
Debug and analyze Nanostores apps with AI: scan stores, monitor runtime events, and search docs.

## Tools
Capabilities this server exposes over MCP:

- **nanostores_scan_project** — Scan project for all stores, subscribers, and dependencies
- **nanostores_store_summary** — Detailed summary of a specific store
- **nanostores_project_outline** — High-level overview: store kinds, top directories, hub stores
- **nanostores_store_subgraph** — BFS-expanded dependency neighborhood of a store
- **nanostores_store_impact** — Downstream causal chain — what recomputes/re-renders if X changes
- **nanostores_runtime_overview** — Overall health report with statistics for all stores
- **nanostores_store_activity** — Activity timeline for a specific store (filterable by kind/action)
- **nanostores_find_noisy_stores** — Identify stores with high change frequency or error rates
- **nanostores_runtime_coverage** — Compare static graph with runtime events to find coverage gaps
- **nanostores_docs_search** — Search docs by `query` (full-text), `storeKind` (atom, map, computed, persistentAtom, etc.), or both. Optional: `limit` (default 10), `tags
- **nanostores_ping** — Server health check and logger bridge status
- **nanostores_clear_cache** — Clear project index cache to force rescan

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "nanostores-mcp": {
    "command": "npx",
    "args": ["-y","nanostores-mcp"],
    "env": {
      "NANOSTORES_MCP_ROOT": "",
      "NANOSTORES_MCP_ROOTS": "",
      "WORKSPACE_FOLDER": "",
      "WORKSPACE_FOLDER_PATHS": "",
      "NANOSTORES_MCP_LOGGER_ENABLED": "",
      "NANOSTORES_MCP_LOGGER_PORT": "",
      "NANOSTORES_MCP_LOGGER_HOST": "",
      "NANOSTORES_DOCS_ROOT": ""
    }
  }
}
```

**Requires environment variables:** `NANOSTORES_MCP_ROOT`, `NANOSTORES_MCP_ROOTS`, `WORKSPACE_FOLDER`, `WORKSPACE_FOLDER_PATHS`, `NANOSTORES_MCP_LOGGER_ENABLED`, `NANOSTORES_MCP_LOGGER_PORT`, `NANOSTORES_MCP_LOGGER_HOST`, `NANOSTORES_DOCS_ROOT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/nanostores-mcp/readme_

