Claude Auto-Approve MCP

by pynesys

Not rated
GitHub

About

Adds auto-approve functionality for MCP requests to the Claude Desktop application.

Details

Author
pynesys
Categories
Productivity, Automation, AI

Add It To Your Claude Desktop Config Json

{ "mcpServers": { "claude-autoapprove-mcp": { "command": "uvx", "args": ](https://docs.astral.sh/uv/getting-started/installation/)[ "claude-autoapprove-mcp" ], "autoapprove": [ "autoapproved_tools", "autoblocked_tools" ] } } }

Restart Claude Desktop if it is already running.

{ "mcpServers": { "claude-autoapprove-mcp": { "command": "uvx", "args": [ "claude-autoapprove-mcp", "--port", "19222", "--persist" ] } } }

You can addautoapproveandautoblockparameters to each MCP server, theclaude-autoapprove-mcpwill read that configuration and apply it to the running instance.

{ "mcpServers": { "claude-autoapprove-mcp": { "command": "uvx", "args": [ "claude-autoapprove-mcp" ], "autoapprove": [ "autoapproved_tools" ], "autoblock": [ ] }, "project-mem-mcp": { "command": "uvx", "args": [ "project-mem-mcp", "--allowed-dir", "/Users/wallner/Developer/MCP", "--allowed-dir", "/Users/wallner/Developer/Projects/ByCompany/BacktestGuy" ], "autoapprove": [ "get_project_memory", "set_project_memory", "update_project_memory" ], "autoblock": [ ] }, "browsermcp": { "command": "npx", "args": [ "@browsermcp/mcp@latest" ], "autoapprove": [ "browser_get_console_logs", "browser_snapshot" ], "autoblock": [ "browser_screenshot" ] } }

Just run Claude Desktop. It is not invasive, it doesn't change anything in the app (only if you use the--persistargument), just injects a JavaScript into the running instance. So you can install updates as usual (even when using the--persistargument). It uses a feature of most Electron based apps:remote debugging port.

If you want to list all tools that are auto-approved, you can use the following prompt in Claude Desktop:

If you want to list all tools that are auto-blocked, you can use the following prompt in Claude Desktop:

The remote debugging port allows any application on your localhost (your machine) to connect to the running Claude Desktop App. This may be a security risk, because any app or script can connect to it and execute arbitrary code inside Claude Desktop App context. This may be used for malicious purposes. It is a low risk, if you know what is running on your computer.

So be careful when using this feature and use it at your own risk.

This project is licensed under the MIT License. See theLICENSEfile for details.

If you want to contribute to this project, please fork the repository and create a pull request.

Create notes, search, & think with your Fabric AI workspace

Magica is your all-in-one AI platform, offering 2500+ cutting-edge tools under a single subscription.

Connect to the Taskade platform via MCP. Access tasks, projects, workflows, and AI agents in real-time through a unified workspace and API.

Dynamically search and call tools using UnifAI Network

A dynamic server for managing multi-agent collaboration within tmux sessions, featuring flexible pane configurations and auto-detection.

A Model Context Protocol (MCP) server that provides access to 100+ curated AI agent skills from the VoltAgent Awesome Agent Skills collection.

An MCP server to execute Coze workflows locally via a Python script.

MCP skill that automatically reduces Manus AI credit consumption by 30-75% through intelligent model routing, smart testing, and context hygiene

An MCP server for advanced cognitive analysis, creative problem-solving, and structured thinking using the UCPF framework.

Connect your GTD system directly to any LLM, so you can capture, organize, and review your life and work using natural language.

Adds auto-approve functionality for MCP requests to the Claude Desktop application.

WarningThe May 1st update introduced an "Always approve" button -do not use thisas it cannot be undone!claude-autoapprove-mcprestores the safer "Allow for this chat" functionality:

- Configure permanent approvals in config
- Make per-chat decisions for other tools
- Change decisions in newer chats This provides granular control while maintaining security.

If you by mistake used the "Always approve" button, as a workaround you can rename the mcp in theclaude_desktop_config.jsonfile to something else. Example:git->git_new. If Anthropic fixes this bug in the future, we may not needclaude-autoapprove-mcpanymore.

An MCP to restart Claude Desktop App with enabled debugger port and inject a JavaScript into it, which extends Claude with MCP auto-approve functionality. It uses theclaude-autoapprovelibrary under the hood.

The MCP server will restart the Claude Desktop App with enabled debugger port and inject a JavaScript into it, which extends Claude with MCP auto-approve functionality.

Dont't be afraid when after 1st start of the app it will be closed immediately. This is expected behavior.

Imstallinguv(if you don't have it yet)

After installinguv, make sure it's available in yourPATH.

You can find other installation options in theuv installation guide.

Add it to yourclaude_desktop_config.json

{ "mcpServers": { "claude-autoapprove-mcp": { "command": "uvx", "args": [ "claude-autoapprove-mcp" ], "autoapprove": [ "autoapproved_tools", "autoblocked_tools" ] } } }

Restart Claude Desktop if it is already running.

{ "mcpServers": { "claude-autoapprove-mcp": { "command": "uvx", "args": [ "claude-autoapprove-mcp", "--port", "19222", "--persist" ] } } }

You can addautoapproveandautoblockparameters to each MCP server, theclaude-autoapprove-mcpwill read that configuration and apply it to the running instance.

{ "mcpServers": { "claude-autoapprove-mcp": { "command": "uvx", "args": [ "claude-autoapprove-mcp" ], "autoapprove": [ "autoapproved_tools" ], "autoblock": [ ] }, "project-mem-mcp": { "command": "uvx", "args": [ "project-mem-mcp", "--allowed-dir", "/Users/wallner/Developer/MCP", "--allowed-dir", "/Users/wallner/Developer/Projects/ByCompany/BacktestGuy" ], "autoapprove": [ "get_project_memory", "set_project_memory", "update_project_memory" ], "autoblock": [ ] }, "browsermcp": { "command": "npx", "args": [ "@browsermcp/mcp@latest" ], "autoapprove": [ "browser_get_console_logs", "browser_snapshot" ], "autoblock": [ "browser_screenshot" ] } }

Just run Claude Desktop. It is not invasive, it doesn't change anything in the app (only if you use the--persistargument), just injects a JavaScript into the running instance. So you can install updates as usual (even when using the--persistargument). It uses a feature of most Electron based apps:remote debugging port.

If you want to list all tools that are auto-approved, you can use the following prompt in Claude Desktop:

If you want to list all tools that are auto-blocked, you can use the following prompt in Claude Desktop:

The remote debugging port allows any application on your localhost (your machine) to connect to the running Claude Desktop App. This may be a security risk, because any app or script can connect to it and execute arbitrary code inside Claude Desktop App context. This may be used for malicious purposes. It is a low risk, if you know what is running on your computer.

So be careful when using this feature and use it at your own risk.

This project is licensed under the MIT License. See theLICENSEfile for details.

If you want to contribute to this project, please fork the repository and create a pull request.

Create notes, search, & think with your Fabric AI workspace

Magica is your all-in-one AI platform, offering 2500+ cutting-edge tools under a single subscription.

Connect to the Taskade platform via MCP. Access tasks, projects, workflows, and AI agents in real-time through a unified workspace and API.

Dynamically search and call tools using UnifAI Network

A dynamic server for managing multi-agent collaboration within tmux sessions, featuring flexible pane configurations and auto-detection.

A Model Context Protocol (MCP) server that provides access to 100+ curated AI agent skills from the VoltAgent Awesome Agent Skills collection.

An MCP server to execute Coze workflows locally via a Python script.

MCP skill that automatically reduces Manus AI credit consumption by 30-75% through intelligent model routing, smart testing, and context hygiene

An MCP server for advanced cognitive analysis, creative problem-solving, and structured thinking using the UCPF framework.

Connect your GTD system directly to any LLM, so you can capture, organize, and review your life and work using natural language.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.