tampermonkey avatar

Tampermonkey Mcp

tampermonkey/tampermonkey-mcp

Lets AI assistants list, read, create, update, and delete Tampermonkey userscripts in the browser.

CCM score
83 of 100
GitHub stars
69
tools
6
transport
STDIO
last updated
May 13, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Reads scripts with tampermonkey_list and tampermonkey_get, filtered by name or include URL pattern
  • Writes changes with tampermonkey_patch and tampermonkey_put; removal is limited to tampermonkey_delete
  • Requires Tampermonkey and the Tampermonkey Editors extension, linked by a WebSocket connection code from tampermonkey_get_connection_code
  • Designed for editing and maintaining userscripts from an AI assistant without opening the Tampermonkey dashboard

Tools

6 tools

Public tool metadata for what this MCP can expose to an agent.

tampermonkey_get_connection_codeInitialize connection by getting the WebSocket connection code.

Initialize connection by getting the WebSocket connection code.

No parameter schema in public metadata yet.

tampermonkey_listList all available userscripts.

List all available userscripts.

No parameter schema in public metadata yet.

tampermonkey_getGet content of a specific userscript.

Get content of a specific userscript.

No parameter schema in public metadata yet.

tampermonkey_patchUpdate userscript content.

Update userscript content.

No parameter schema in public metadata yet.

tampermonkey_putCreate a new userscript with the given name and namespace.

Create a new userscript with the given name and namespace.

No parameter schema in public metadata yet.

tampermonkey_deleteDelete an existing userscript.

Delete an existing userscript.

No parameter schema in public metadata yet.

Readme

How to use

First install the following browser extensions:

Then install tampermonkey-mcp globally:

npm install -g tampermonkey-mcp@latest

Finally configure your AI assistant to use the tampermonkey tool:

{
  "mcpServers": {
    "tampermonkey": {
      "command": "npx",
      "args": [
        "-y",
        "tampermonkey-mcp@latest"
      ]
    }
  }
}

Your assistant will call tampermonkey_get_connection_code and return a connection code that you can enter in the Tampermonkey Editors extension.

Claude Code configuration example

npm install -g @anthropic-ai/claude-code

// either use your local checkout
npm run watch
claude mcp add --transport http --scope project tampermonkey http://localhost:4001/mcp

// or the npm package
npm install -g tampermonkey-mcp@latest
claude mcp add --transport stdio --scope project tampermonkey -- npx -y tampermonkey-mcp

View the full README on GitHub

Details

Repository
github.com/tampermonkey/tampermonkey-mcp
Categories
Developer Tools, Browser Automation & Scraping
Package
tampermonkey-mcp
Transport
STDIO
Registry
MCP registry, active

Similar to Tampermonkey Mcp

More Developer Tools