Agent Godmode logo

Agent Godmode

Scopes file management and argv-only subprocess execution to a configured workspace root over MCP.

Install Agent Godmode

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agent-godmode": {
      "command": "uvx",
      "args": [
        "agent-godmode"
      ],
      "env": {
        "AGENT_GODMODE_ROOT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx agent-godmode

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The agent-godmode MCP server exposes workspace-scoped file and process tools for Cursor-style agents. It supports reading, writing, editing, and listing UTF-8 files plus running subprocesses from an argv list without a shell, with paths constrained to a configured root. The package also includes versioned system prompts and OpenAI-style tool definitions for applications that supply their own LLM. Reach for it when an agent needs controlled project-file access or local command execution without hosting the model or API keys.

Use cases

  • Read and update project files from an MCP-enabled coding agent
  • Run approved local development commands inside a workspace
  • List repository files with recursion and glob filters
  • Embed workspace tools in a Python application with a custom LLM

Key features

  • Workspace-root path restriction
  • UTF-8 file read, write, and search-replace operations
  • Recursive file listing with filters and limits
  • Shell-free argv subprocess execution
  • OpenAI-style tool definitions and versioned system prompt
  • In-process Python workspace API

Tools5

What Agent Godmode lets your agent do. Expand a tool for its parameters.

Self-reported~157 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16h ago via OSV.dev · agent-godmode (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed5Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Godmode works

What the agent-godmode MCP server does

The agent-godmode MCP server gives an MCP client a set of operations over one configured workspace. It can read UTF-8 text, create or modify text files, inspect directory contents, and start subprocesses. File paths are interpreted relative to the workspace root; absolute paths are accepted only when they resolve inside that root.

The package is intended for building Cursor-style agents, but it does not provide a hosted model. The application using it keeps the LLM connection and API credentials. Alongside the MCP interface, the same workspace operations are available in Python through AgentWorkspace and WorkspaceTools.

How it works

A server process is started through the agent-godmode command and communicates with an MCP client over stdio. The workspace root comes from --root or AGENT_GODMODE_ROOT; a command-line root takes precedence for that process. Every file operation uses this root as its boundary, and run_command accepts an argv array rather than a shell command string.

The command runner can use an optional working directory under the root. It does not invoke a shell, which means shell parsing and shell operators are not part of the tool interface. Command names can also be restricted with a comma-separated allowlist of executable basenames. Read size, command duration, command output, and directory listing limits are configurable.

For model integration, OPENAI_TOOL_DEFINITIONS describes the tools and TOOL_DESCRIPTIONS provides their descriptions. SYSTEM_PROMPT_V1 supplies the documented agent behavior. Applications can use these definitions with their own model client, including OpenAI Chat Completions as shown in the project documentation.

Setup and configuration

Install the package with pip install agent-godmode. Configure an MCP client with a server entry that runs agent-godmode, then set an absolute workspace path through AGENT_GODMODE_ROOT or pass --root /path/to/workspace. If the client does not automatically load server instructions, add SYSTEM_PROMPT_V1 to its system prompt.

The main optional settings are AGENT_GODMODE_MAX_READ_BYTES, AGENT_GODMODE_COMMAND_TIMEOUT, AGENT_GODMODE_MAX_COMMAND_OUTPUT_BYTES, AGENT_GODMODE_LIST_MAX_ENTRIES, and AGENT_GODMODE_ALLOWED_COMMANDS. Their defaults limit reads to 512000 bytes, subprocesses to 120 seconds, combined command output to 256000 bytes, and directory results to 2000 entries. The command allowlist is unrestricted when unset.

An in-process Python setup can create an AgentWorkspace for a chosen directory without starting an MCP process. Direct workspace and edit operations do not require an OpenAI key; an API key is needed only for the documented Chat Completions examples.

Tools and capabilities

  • read_file reads UTF-8 text with optional line ranges and a byte cap.
  • write_file creates, overwrites, or appends UTF-8 text and creates missing parent directories.
  • edit_file replaces a non-empty string in an existing UTF-8 file. Unless replace_all is enabled, the target must occur exactly once.
  • list_files lists entries with optional recursion, glob matching, depth limits, and dotfile control.
  • run_command starts a subprocess from an argv list and supports an optional workspace-relative cwd.

Invalid UTF-8 is reported as an error instead of being treated as editable text. For reliable single replacements, read the surrounding file content first and provide enough context to make the old string unique.

Limitations and notes

The agent-godmode MCP server is a tool-execution package, not an LLM host or model provider. API keys remain in the application. Its file operations are for UTF-8 text and do not provide a general binary-file editing interface. Commands are argv-only, so workflows that depend on shell syntax must be expressed through an executable and its arguments. The configured workspace root and command limits determine what the agent can access and how much output it can receive.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent Godmode

agent-godmode is an MCP server that connects an LLM client to a scoped local workspace through file and process tools. Its main tools are read_file, write_file, edit_file, list_files, and run_command. It keeps model hosting and API keys in the calling application while enforcing workspace-relative paths and argv-only subprocess execution.

Install it with `pip install agent-godmode`. Then configure your MCP client to launch the `agent-godmode` command and provide `AGENT_GODMODE_ROOT`, or pass a workspace path with `--root`.

Set `AGENT_GODMODE_ROOT` to an absolute workspace directory or pass `--root` in the server arguments. The explicit `--root` value overrides the environment variable for that process, and paths outside the selected root are not allowed.

Yes, agent-godmode can be configured as a stdio server in Cursor. Add an `mcpServers` entry that runs `agent-godmode`, set the workspace root, and provide `SYSTEM_PROMPT_V1` if Cursor does not load server instructions automatically.

It can run subprocesses, but `run_command` accepts an argv list only and does not invoke a shell. You can optionally restrict the executable basename with `AGENT_GODMODE_ALLOWED_COMMANDS`; the command working directory must remain under the workspace root.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent Godmode AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-godmode?style=directory)](https://allmcps.com/mcp/agent-godmode)
HTML Embed
<a href="https://allmcps.com/mcp/agent-godmode"><img src="https://allmcps.com/api/badge/agent-godmode?style=directory" alt="Agent Godmode on AllMCPs" /></a>