A powerful MCP (Model Context Protocol) server designed to interface with PostgreSQL databases. This tool allows users to manage database schemas, visualize data, and perform human-in-the-loop operations via Claude Desktop.
Before you begin, ensure you have the following installed:
- Claude Desktop
- PostgreSQL (Running and accessible)
- Conda (Miniconda recommended)
- DBeaver (Recommended for visualizing your database)
Download the project files from this repository to your local machine and navigate into the project folder:
cd /path/to/Mobile-Application-Agent
Locate utils/config.py. Update the DB_CONFIG dictionary with your local PostgreSQL credentials.
⚠️ Security Warning: Never commit your real database passwords to a public GitHub repository. Use environment variables if you plan to push your changes.
Create and activate your Conda environment to ensure all dependencies are managed correctly:
# Create and activate
conda create -n agents python=3.12
conda activate agents
# Install requirements
pip install --upgrade pip
pip install -r requirements.txt
To connect the server to Claude, you must update the Claude Desktop configuration file.
- Locate the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Add/Update the configuration:
Replace
/YourUsername/with your actual system username.
{
"mcpServers": {
"HRAssistantServer": {
"command": "/Users/YourUsername/miniconda3/envs/agents/bin/uv",
"args": [
"run", "--frozen", "--with", "mcp[cli]", "mcp", "run",
"/Users/YourUsername/path/Mobile-Application-Agent/mcpServer.py"
],
"env": {
"PATH": "/Users/YourUsername/miniconda3/envs/agents/bin",
"PYTHONPATH": "/Users/YourUsername/path/Mobile-Application-Agent"
}
}
}
}
{
"mcpServers": {
"HRAssistantServer": {
"command": "/Users/YourUsername/miniconda3/envs/agents/bin/python",
"args": [
"/Users/YourUsername/path/Mobile-Application-Agent/mcpServer.py"
]
}
}
}
- Completely quit Claude Desktop (Cmd+Q / Alt+F4).
- Restart Claude Desktop.
- Look for the "HRAssistantServer" icon or status in your MCP settings inside Claude.
- Logs: If the server fails to connect, open Claude Desktop and view logs (usually located in
~/Library/Logs/Claude/mcp-server-HRAssistantServer.log). - Paths: Ensure every path in your JSON config is an absolute path (starting from
/Users/...). - Conda: Ensure you activated the
agentsenvironment before starting any processes. If the paths are incorrect, Claude cannot find the Python interpreter. - Database: Use DBeaver to verify your PostgreSQL instance is running and your credentials are correct.
- Visualizing Data: We recommend using DBeaver to inspect changes made to your database by the tools.
- Human-in-the-Loop: Many of our tools require explicit confirmation (e.g., typing 'YES') to perform destructive actions like
DROP TABLE.