Skip to main content

MCP server for database management

Project description

MCP Database Manager

An MCP server that enables LLM agents to perform CRUD operations across multiple databases.

Features

  • Multi-Database Support
  • Permission Management (Read-only by default)
  • SQLAlchemy Integration

Configuration

The configuration file is located at:

  • ~/.mcp-database-manager/config.yaml (on all platforms)

Example config.yaml:

connections:
  - name: "main_db"
    url: "sqlite:///./main.db"
    readonly: true

Cursor Configuration

To use this MCP server in Cursor, add the following to your MCP settings (Settings > Features > MCP):

Option 1: Local Development (Recommended)

Use this if you have the source code locally.

{
  "mcpServers": {
    "database-manager": {
      "command": "uv",
      "args": [
        "run",
        "--extra",
        "postgres",
        "mcp-database-manager"
      ],
      "cwd": "d:/code/mcp-database-manager"
    }
  }
}

Option 2: Using uvx (If published)

{
  "mcpServers": {
    "database-manager": {
      "command": "uvx",
      "args": [
        "--with",
        "mcp-database-manager[postgres]",
        "mcp-database-manager"
      ]
    }
  }
}

Troubleshooting

If you see "Module not found" errors, ensure you are using uv run which handles the virtual environment automatically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_database_manager-0.1.0.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_database_manager-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_database_manager-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_database_manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b601d0c6ad4f24da9177a68687f216b982c6c910ba2375d3c35ed94d4ec4732d
MD5 870a572908c1311cdc9c8927cc7cf136
BLAKE2b-256 d557d97334fdb36c2973ce880aa3eee33323f844afe339a1615c2f258a32a9a5

See more details on using hashes here.

File details

Details for the file mcp_database_manager-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_database_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 844fcd095b21a4b6f21f47f770d8c55a25837827c28fcd2f576c4870ce4287ec
MD5 c1ac4a89ebfa51a2995549c9ee4317b1
BLAKE2b-256 9600fbed8103dcc1368a9810728c48afb92b8b7fafb6237eee4ca3909c532097

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page