New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mcp-docs-tool

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-docs-tool

MCP Documentation Tool for Cursor

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

MCP Documentation Tool

An MCP (Model Context Protocol) tool for Cursor that assists with coding by searching relevant documentation for different programming languages.

Features

  • Search documentation for multiple programming languages:
    • Go (using go doc)
    • Rust (using cargo doc or rustup doc)
    • TypeScript (using typedoc or npm package lookups)
  • Integrate directly with Cursor's AI features
  • No HTTP server required - runs as a local process

Installation

The easiest way to install this tool is directly from npm:

npm install -g mcp-docs-tool

Then, add it to your Cursor MCP configuration (see Usage section below).

Option 2: Install from Source

  • Clone this repository:

    git clone <repository-url>
    cd mcp-docs-tool
    
  • Install dependencies:

    npm install
    
  • Build the project:

    npm run build
    
  • Link the package globally (optional):

    npm link
    

Usage with Cursor

Project-specific Configuration

  • Create a .cursor directory in your project root:

    mkdir -p .cursor
    
  • Create a mcp.json file in the .cursor directory with the following content:

    {
      "mcpServers": {
        "documentation-search": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "mcp-docs-tool@latest"
          ],
          "env": {}
        }
      }
    }
    

Global Configuration

  • Create a .cursor directory in your home directory (if it doesn't exist):

    mkdir -p ~/.cursor
    
  • Create or edit the mcp.json file in the ~/.cursor directory and add:

    {
      "mcpServers": {
        "documentation-search": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "mcp-docs-tool@latest"
          ],
          "env": {}
        }
      }
    }
    
  • The tool will now be available in all Cursor workspaces.

Example Queries

In Cursor's chat, you can ask the agent to use the documentation search tool:

  • "Search for documentation on io.Reader in Go"
  • "Find Rust documentation for std::collections::HashMap"
  • "Get TypeScript documentation for express"

Publishing to npm

If you want to publish this package to npm:

  • Make sure you have an npm account and are logged in:

    npm login
    
  • Update the version in package.json if needed

  • Publish the package:

    npm publish
    

Requirements

  • Node.js 16+
  • npm or yarn
  • For language-specific documentation:
    • Go: Go toolchain installed
    • Rust: Rust toolchain with cargo and/or rustup
    • TypeScript: npm and optionally typedoc

Testing

To test the MCP server locally:

node test.js

This will send test requests to the MCP server and display the responses.

License

ISC

Keywords

mcp

FAQs

Package last updated on 17 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts