setup-db-mcp

Configure MCP servers for database connectivity from a connection string.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/diegolirio/ai-showcase-skills --skill setup-db-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-db-mcp
Source: https://github.com/diegolirio/ai-showcase-skills/tree/main/skills/setup-db-mcp
Command: npx skills add https://github.com/diegolirio/ai-showcase-skills --skill setup-db-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configures an MCP server so Claude Code can query a database directly.

Core Features & Use Cases

  • Automatically derives engine, host, port, user, and server-name from the connection string.
  • Creates or updates local (~/.mcp.json) and global (~/.mcp.json) MCP configurations and stores the connection string securely via environment variables.
  • Supports local Docker-based containers for development and remote databases for production.

Quick Start

Run this skill to configure an MCP server for your database and enable Claude Code access.

Frequently Asked Questions about setup-db-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure an MCP server in Claude Code for direct database queries?

To configure an MCP server for direct database queries, you provide a connection string so the skill can automatically derive the engine, host, port, and user, then write the MCP entries to local and global configuration files.

Can I use a single connection string to set up MCP configurations for PostgreSQL, MySQL, Oracle, and SQLite?

Yes, you can use a single connection string to set up MCP configurations across PostgreSQL, MySQL, Oracle, and SQLite, as the skill automatically parses the connection string to derive the engine and server-name.

How does environment-variable handling work for database connection strings in MCP configurations?

Environment-variable handling for database connection strings stores the connection string securely, applying automatic environment-variable substitution when writing MCP entries to local and global configuration files.

Do I need Docker to use MCP server configurations for local development and remote databases?

You need Docker for local development containers, as the skill creates or updates docker-compose configurations as needed, but it also directly supports remote databases for production environments without requiring Docker.

What is the best way to update an existing MCP configuration with a new database connection string?

The best way to update an existing MCP configuration is to run the skill with the new connection string, which derives the database engine and host, updates docker-compose configurations, and writes MCP entries to configuration files.

Why does my MCP server configuration not work with my local Docker database environment?

Your MCP server configuration might not work if the connection string is incorrect or environment variables are missing, as the skill relies on deriving the engine, host, port, and user from the connection string for docker-compose configurations.