Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-valyay-nanostores-mcp": {
"command": "npx",
"args": [
"-y",
"nanostores-mcp"
],
"env": {
"WORKSPACE_FOLDER": "<VALUE>",
"NANOSTORES_MCP_ROOT": "cwd",
"NANOSTORES_DOCS_ROOT": "<VALUE>",
"NANOSTORES_MCP_ROOTS": "<VALUE>",
"WORKSPACE_FOLDER_PATHS": "<VALUE>",
"NANOSTORES_DOCS_PATTERNS": "**/*.md",
"NANOSTORES_MCP_LOGGER_HOST": "127.0.0.1",
"NANOSTORES_MCP_LOGGER_PORT": "3999",
"NANOSTORES_MCP_LOGGER_ENABLED": "true"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-valyay-nanostores-mcp": {
"command": "npx",
"args": [
"-y",
"nanostores-mcp"
],
"env": {
"WORKSPACE_FOLDER": "<VALUE>",
"NANOSTORES_MCP_ROOT": "cwd",
"NANOSTORES_DOCS_ROOT": "<VALUE>",
"NANOSTORES_MCP_ROOTS": "<VALUE>",
"WORKSPACE_FOLDER_PATHS": "<VALUE>",
"NANOSTORES_DOCS_PATTERNS": "**/*.md",
"NANOSTORES_MCP_LOGGER_HOST": "127.0.0.1",
"NANOSTORES_MCP_LOGGER_PORT": "3999",
"NANOSTORES_MCP_LOGGER_ENABLED": "true"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-valyay-nanostores-mcp": {
"command": "npx",
"args": [
"-y",
"nanostores-mcp"
],
"env": {
"WORKSPACE_FOLDER": "<VALUE>",
"NANOSTORES_MCP_ROOT": "cwd",
"NANOSTORES_DOCS_ROOT": "<VALUE>",
"NANOSTORES_MCP_ROOTS": "<VALUE>",
"WORKSPACE_FOLDER_PATHS": "<VALUE>",
"NANOSTORES_DOCS_PATTERNS": "**/*.md",
"NANOSTORES_MCP_LOGGER_HOST": "127.0.0.1",
"NANOSTORES_MCP_LOGGER_PORT": "3999",
"NANOSTORES_MCP_LOGGER_ENABLED": "true"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-valyay-nanostores-mcp": {
"command": "npx",
"args": [
"-y",
"nanostores-mcp"
],
"env": {
"WORKSPACE_FOLDER": "<VALUE>",
"NANOSTORES_MCP_ROOT": "cwd",
"NANOSTORES_DOCS_ROOT": "<VALUE>",
"NANOSTORES_MCP_ROOTS": "<VALUE>",
"WORKSPACE_FOLDER_PATHS": "<VALUE>",
"NANOSTORES_DOCS_PATTERNS": "**/*.md",
"NANOSTORES_MCP_LOGGER_HOST": "127.0.0.1",
"NANOSTORES_MCP_LOGGER_PORT": "3999",
"NANOSTORES_MCP_LOGGER_ENABLED": "true"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-valyay-nanostores-mcp": {
"command": "npx",
"args": [
"-y",
"nanostores-mcp"
],
"env": {
"WORKSPACE_FOLDER": "<VALUE>",
"NANOSTORES_MCP_ROOT": "cwd",
"NANOSTORES_DOCS_ROOT": "<VALUE>",
"NANOSTORES_MCP_ROOTS": "<VALUE>",
"WORKSPACE_FOLDER_PATHS": "<VALUE>",
"NANOSTORES_DOCS_PATTERNS": "**/*.md",
"NANOSTORES_MCP_LOGGER_HOST": "127.0.0.1",
"NANOSTORES_MCP_LOGGER_PORT": "3999",
"NANOSTORES_MCP_LOGGER_ENABLED": "true"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-valyay-nanostores-mcp": {
"command": "npx",
"args": [
"-y",
"nanostores-mcp"
],
"env": {
"WORKSPACE_FOLDER": "<VALUE>",
"NANOSTORES_MCP_ROOT": "cwd",
"NANOSTORES_DOCS_ROOT": "<VALUE>",
"NANOSTORES_MCP_ROOTS": "<VALUE>",
"WORKSPACE_FOLDER_PATHS": "<VALUE>",
"NANOSTORES_DOCS_PATTERNS": "**/*.md",
"NANOSTORES_MCP_LOGGER_HOST": "127.0.0.1",
"NANOSTORES_MCP_LOGGER_PORT": "3999",
"NANOSTORES_MCP_LOGGER_ENABLED": "true"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| WORKSPACE_FOLDER | No | Alias for NANOSTORES_MCP_ROOT — set automatically by VS Code and some editors |
| NANOSTORES_MCP_ROOT | No | Project root path Default: cwd |
| NANOSTORES_DOCS_ROOT | No | Path to documentation directory |
| NANOSTORES_MCP_ROOTS | No | Platform-delimited roots (':' on Unix, ';' on Windows) for multi-project setup |
| WORKSPACE_FOLDER_PATHS | No | Alias for NANOSTORES_MCP_ROOTS — set automatically by some editors |
| NANOSTORES_DOCS_PATTERNS | No | Comma-separated glob patterns for docs Default: **/*.md |
| NANOSTORES_MCP_LOGGER_HOST | No | Host to bind. Allowed values: 127.0.0.1, localhost, ::1 Default: 127.0.0.1 |
| NANOSTORES_MCP_LOGGER_PORT | No | HTTP port for logger bridge Default: 3999 |
| NANOSTORES_MCP_LOGGER_ENABLED | No | Set to false or 0 to disable runtime event collection and the logger bridge Default: true |