MCP Server Config Generator

Generate Model Context Protocol server configs with safe filesystem and tool permissions.

Internal identifier for the client (e.g., Cursor, Claude Desktop) to reference.

The base command to execute (e.g., npx, node, python, docker).

Arguments passed to the command.

Comma-separated key=value pairs (e.g., API_KEY=xxx,DB_URL=yyy). Use placeholders for secrets!

Comma-separated list of paths the MCP server is allowed to access (Principle of Least Privilege).

How long the client should wait for the MCP server to respond.

mcp-server-config-generator.yaml
1

Overview

Enterprise MCP Server Generator

The MCP Server Config Generator helps you scaffold secure configurations for the Model Context Protocol. It generates the necessary JSON files for clients like Claude Desktop and Cursor IDE to connect to local tools securely.

Short Answer: Use this tool to generate claude_desktop_config.json or Cursor MCP settings while enforcing path restrictions and execution safety.

How It Works

  1. Select Server Type: Choose between Filesystem, Git, Postgres, or Custom implementations.
  2. Define Execution Command: Set the runtime (npx, node, python, docker) and arguments.
  3. Enforce Restrictions: Define the exactly allowed directories the server can access.
  4. Generate: Get the formatted JSON configuration to drop directly into your AI client.

Best Practices

  • Always apply the Principle of Least Privilege: only allow the MCP server access to the specific project folder you are working on.
  • Use Dockerized MCP servers when executing untrusted tools or exploring unfamiliar codebases.
  • Set aggressive timeouts (e.g., 60 seconds) so the LLM doesn't hang indefinitely waiting for a tool response.

Common Mistakes

  • Granting the filesystem MCP server access to `/` or `/home` (massive security risk).
  • Running MCP server commands with `sudo`.
  • Hardcoding database passwords directly in the MCP config instead of using local environment variable injection.

Security Recommendations

  • If the LLM has write access to your filesystem via MCP, it can overwrite critical files. Use Read-Only mode unless you explicitly want the LLM to write code for you.
  • Review the arguments passed to the MCP server. Some servers have hidden flags that bypass safety checks.
  • Never expose an MCP server port to the public internet.

Frequently Asked Questions

What is the Model Context Protocol (MCP)?
MCP is an open standard introduced by Anthropic that allows AI models (like Claude) to securely connect to local data sources and tools, such as your local filesystem, Git repositories, or databases.
Where do I put the claude_desktop_config.json file?
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\Claude\claude_desktop_config.json