Stimulus Docs MCP server

Provides direct access to Stimulus JavaScript framework documentation, fetching content from GitHub with fallback mechanisms for reliable retrieval of handbook tutorials and technical reference materials.
Back to servers
Setup instructions
Provider
Julian Pinzon
Release date
May 25, 2025
Language
JavaScript
Stats
5 stars

The Stimulus Docs MCP Server provides access to up-to-date documentation for Stimulus JS directly within your Claude or VS Code environment. This server fetches official documentation and makes it available as contextual information for your AI assistant.

Installation

Prerequisites

  • Node.js: Version 18.0.0 or higher
  • npm: Included with Node.js

Build Steps

  1. Clone the repository and navigate to the project directory
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build
    

Configuration

Setting Up with Claude Desktop

  1. Build the MCP server using the steps above
  2. Follow the instructions at https://modelcontextprotocol.io/quickstart/user to add a new MCP server
  3. Add this configuration to your Claude settings:
    {
      "mcpServers": {
        "stimulus-docs": {
          "command": "node",
          "args": ["/path/to/your/stimulus-docs-mcp-server/build/index.js"],
          "env": {}
        }
      }
    }
    
  4. Replace /path/to/your/stimulus-docs-mcp-server with the actual path to the project
  5. Restart Claude Desktop

Setting Up with VS Code

  1. Build the MCP server using the steps above
  2. Follow the instructions at https://code.visualstudio.com/docs/copilot/chat/mcp-servers
  3. Configure the MCP server:
    {
     "stimulus-docs": {
         "type": "stdio",
         "command": "node",
         "args": [
             "path/to/your/stimulus-docs-mcp-server"
           ]
     }
    }
    
  4. Replace path/to/your/stimulus-docs-mcp-server with the path to the built index.js file

Troubleshooting

Node Path Issues

If you see errors like MCP stimulus-docs: spawn node ENOENT (2) when opening Claude, it means the path to the node executable cannot be found.

Use the complete path to node instead:

"command": "/Users/YOUR_USERNAME/.local/share/mise/installs/node/20.18.3/bin/node"

Available Documentation

Once configured, you'll have access to the complete Stimulus documentation, including:

  • Introduction and getting started guides
  • Hello Stimulus tutorial
  • Building real applications
  • Design principles and state management
  • Working with external resources
  • Installation instructions
  • Reference documentation for actions, controllers, classes, callbacks, outlets, targets, TypeScript, and values

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "stimulus-docs" '{"command":"node","args":["/path/to/your/stimulus-docs-mcp-server/build/index.js"],"env":[]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "stimulus-docs": {
            "command": "node",
            "args": [
                "/path/to/your/stimulus-docs-mcp-server/build/index.js"
            ],
            "env": []
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "stimulus-docs": {
            "command": "node",
            "args": [
                "/path/to/your/stimulus-docs-mcp-server/build/index.js"
            ],
            "env": []
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later