local-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@local-mcp-serverShow me the contents of server.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
local-mcp-server
Local MCP server with Docker Compose and one-command wrappers.
What this provides
File access tools scoped to one allowed root directory
Local command execution via an allow-list
Read-only Postgres query tool
Dockerized startup with one command
Related MCP server: hardened-terminal-mcp
Prerequisites
Docker Desktop (running)
One-time setup
Start from project root.
Run:
chmod +x scripts/start-local-mcp.sh scripts/stop-local-mcp.sh scripts/register-mcp-client.sh
./scripts/start-local-mcp.shOn first run, the script creates .env from .env.example and exits.
Edit
.envand set at least:
MCP_ALLOWED_ROOTDB_PASSWORDOptional: any DB values if your local DB differs
Run again:
./scripts/start-local-mcp.shDaily usage
Start:
./scripts/start-local-mcp.shStop:
./scripts/stop-local-mcp.shLogs:
docker compose -f /Users/suresh.gollamudi/projects/marketplace-code-review/local-mcp-server/docker-compose.yml logs -f local-mcpStatus:
docker compose -f /Users/suresh.gollamudi/projects/marketplace-code-review/local-mcp-server/docker-compose.yml psAuto-register MCP client (VS Code + Cursor)
Use the auto-detect script to register this server in supported local client config files:
./scripts/register-mcp-client.shDry-run preview only:
./scripts/register-mcp-client.sh --dry-runTarget one client explicitly:
./scripts/register-mcp-client.sh --target vscode
./scripts/register-mcp-client.sh --target cursorWhat it updates:
VS Code (recommended):
~/Library/Application Support/Code/User/mcp.jsonunderserversCursor (if present):
~/Library/Application Support/Cursor/User/mcp.jsonunderserversCursor fallback:
~/.cursor/mcp.jsonunderservers
The script also removes any legacy VS Code settings.json entry for this server.
The script creates backup files before writing any existing config.
MCP endpoint
http://localhost:3000/mcp
Tools exposed by this server
list_files(relative_path)read_text_file(relative_path, max_chars)run_local_command(command, args, timeout_sec)query_postgres_readonly(sql, limit)
Security defaults
Filesystem access constrained to
MCP_ALLOWED_ROOTCommand execution constrained to an allow-list in
server.pySQL constrained to
SELECT/WITHonly
Initialize as a local git repo
git init
git add .
git commit -m "Initial local MCP server scaffold"This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal MCP server for safe querying and inspecting PostgreSQL databases, with write and maintenance operations disabled by default.851 npm1ISC
- AlicenseAqualityAmaintenanceSecurity-hardened MCP server that runs only allowlisted commands with no shell, jailed to a single directory, and bounded execution.2MIT
- AlicenseNot gradedqualityAmaintenanceA local MCP server for inspecting and operating Linux VPS deployments through restricted SSH.2MIT
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server providing SQLite querying, port checking, and git diff summary tools for local development.MIT