Skip to content
Docs
MCP
Local

Local MCP (stdio)

Your client starts the MCP process locally; Crawl and Proxy requests use remote services.

Prerequisites

  • Nstdata account with Crawl access and an API token. Required only when Crawl is enabled.

  • Use Node.js 22.18+ (22.x) or 24.x and a local stdio client. Crawl requires NSTDATA_API_TOKEN; Proxy-only requires NSTDATA_PROXY_URL and no Crawl token

Install Node.js from the official Node.js website (opens in a new tab).

Configure Your MCP Client

In the Nstdata dashboard, go to Settings → Account → API key and copy your key.

  • Local Crawl configuration (stdio)

Use a private user configuration for real credentials. Keep keys out of shared project files and version control. If your client supports environment references, make sure the app can read the variable at startup. Restart the connection after saving.

{
  "mcpServers": {
    "nstdata-local": {
      "command": "npx",
      "args": [
        "--yes",
        "@nstdata-ai/mcp-server@1.0.3"
      ],
      "env": {
        "NSTDATA_MODULES": "crawl",
        "NSTDATA_API_TOKEN": "YOUR_CRAWL_API_TOKEN"
      }
    }
  }
}
  • Cursor

Use ~/.cursor/mcp.json for private user settings. If you use the project file .cursor/mcp.json, keep real keys outside the repository. Merge the nstdata-local entry into mcpServers and preserve existing servers. Save the file and reload the MCP connection.

Cursor MCP setup guide (opens in a new tab)

  • Claude Desktop

Open Settings → Developer → Edit Config. Merge nstdata-local into mcpServers and preserve existing servers.

Configuration file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Save the file, fully quit Claude Desktop, and reopen it.

Claude Desktop local MCP setup guide (opens in a new tab)

  • Codex

Add or update the following TOML configuration in ~/.codex/config.toml. For a trusted project, you can use .codex/config.toml instead.

[mcp_servers.nstdata-local]
command = "npx"
args = ["--yes", "@nstdata-ai/mcp-server@1.0.3"]

[mcp_servers.nstdata-local.env]
NSTDATA_MODULES = "crawl"
NSTDATA_API_TOKEN = "YOUR_CRAWL_API_TOKEN"

Replace YOUR_CRAWL_API_TOKEN with your token, preserve existing settings, and restart Codex. Codex uses TOML configuration rather than the mcpServers JSON format.

Codex MCP setup guide (opens in a new tab)

  • Proxy tools

For local HTTP/HTTPS proxy setup, follow Proxy-only configuration. Test the connection by asking nstdata-proxy to call nstdata_proxy_check once and report the result.

Verify Your Connection

Check the client’s MCP connection status and discovered tools before running a small request.

  1. Save the configuration and restart the Nstdata MCP service.

  2. Confirm tool discovery

  3. If startup fails, check Node.js, npx on PATH and required environment variables in client diagnostics.

  4. Run a small request to verify credentials and upstream access.

Try Your First Task

Start with a known URL; web search is not included.

Example prompt:

Use nstdata-local to fetch https://example.com/ (opens in a new tab) once as Markdown. Read any markdownRef and show the title and first sentence. If a call fails, report the error without submitting again.