MCP.so
登录
服务器

MCP Server for Node.js API Documentation

@snyk-labs

MCP Server for the Node.js API documentation

概览

What is MCP Server for Node.js API Documentation?

This MCP server provides access to the official Node.js API documentation. It fetches the documentation from nodejs.org and exposes it through MCP tools, allowing AI clients to query modules, classes, or methods.

How to use MCP Server for Node.js API Documentation?

Install dependencies with npm install, then start the server with npm run start. The server communicates over standard input/output (stdio) and can be configured in MCP clients (e.g., Cursor) by adding a custom server with the full command to node index.js. Use --debug for verbose logging.

Key features of MCP Server for Node.js API Documentation

  • Fetches the latest Node.js API documentation automatically.
  • Provides node-search tool to search modules or list all available methods.
  • Provides node-list tool for a summary of all available modules.
  • Logs activity and errors to /tmp/mcp-server-nodejs-docs.log.
  • Debug mode via the --debug flag.

Use cases of MCP Server for Node.js API Documentation

  • Querying the Node.js API documentation directly within an AI coding assistant.
  • Listing all available Node.js modules to discover new functionality.
  • Searching for specific modules, classes, or methods to get usage details.
  • Debugging tool executions by monitoring the log file.

FAQ from MCP Server for Node.js API Documentation

What MCP tools does this server expose?

It provides two tools: node-search to find or search modules and list their methods, and node-list to get a summary of all available modules.

How do I connect this server to an MCP client like Cursor?

Configure the client to launch a stdio-based MCP server. Provide a name (e.g., "NodeJS API Documentation") and the full command to node index.js (use absolute paths). In Cursor, add this under Settings > Cursor Settings > MCP Servers.

What are the runtime dependencies?

The server requires Node.js and npm. All other dependencies are installed via npm install.

How can I debug the server?

Start with node index.js --debug to enable verbose logging. Monitor /tmp/mcp-server-nodejs-docs.log with tail -f. You can also test with MCP Inspector by running npm run debug.

Where are logs stored?

Logs are written to /tmp/mcp-server-nodejs-docs.log using the pino logging library.

来自「记忆与知识」的更多内容