rds-mcp
Allows monitoring and analysis of Amazon RDS instances, including database details, metrics, slow queries, and performance metrics.
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., "@rds-mcpShow me the top 10 slow queries in the last hour"
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.
RDS MCP Server
A Model Context Protocol (MCP) server for monitoring and analyzing Amazon RDS(MySQL, PostgreSQL) instances information, metrics and slowquery logs.
Installation
Install directly from GitHub using pipx:
# Install
pipx install git+https://github.com/neoai-agent/rds-mcp.git
# Or run without installation
pipx run git+https://github.com/neoai-agent/rds-mcp.gitRelated MCP server: MCP-PostgreSQL-Ops
Quick Start
Authentication Options
The server supports multiple AWS authentication methods:
Option 1: IAM Roles (Recommended for EC2/ECS)
When running on AWS infrastructure with IAM roles attached, you can omit AWS credentials:
rds-mcp --openai-api-key "YOUR_OPENAI_API_KEY" --region "YOUR_AWS_REGION"Option 2: AWS Access Keys
For local development or when IAM roles are not available:
rds-mcp --access-key "YOUR_AWS_ACCESS_KEY" --secret-access-key "YOUR_AWS_SECRET_KEY" --region "YOUR_AWS_REGION" --openai-api-key "YOUR_OPENAI_API_KEY"Option 3: Environment Variables
You can also set AWS credentials via environment variables:
rds-mcp --access-key "YOUR_AWS_ACCESS_KEY" --secret-access-key "YOUR_AWS_SECRET_KEY" --region "YOUR_AWS_REGION" --openai_api_key "YOUR_OPENAI_API_KEY"Note: When using IAM roles, the server will automatically use the default AWS credential chain, which includes IAM roles, environment variables, and AWS credentials file.
Available Tools
The server provides the following tools for RDS instance management and monitoring:
Get RDS instance details:
await get_db_info(
database_name="your-db-instance",
region="your-aws-region"
)Get database metrics:
await get_database_metrics(
database_name="your-db-instance",
time_range_minutes=30
)Get slow queries:
await get_database_queries(
database_name="your-db-instance",
time_range_minutes=30
)Get instance performance metrics:
await get_top_rds_load(
database_name="your-db-instance",
time_range_minutes=30
)Development
For development setup:
git clone https://github.com/neoai-agent/rds-mcp.git
cd rds-mcp
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]"License
MIT License - See LICENSE file for details
This server cannot be deployed
Maintenance
Related MCP Connectors
Ask your databases questions in plain English, run read-only SQL and set up data alerts.
Ask questions in plain language, get answers from your business database. No SQL required.
Ask business questions in plain English. Get instant answers from your database, no SQL needed.
Query BigQuery, Snowflake, Redshift & Azure Synapse with natural language
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language analysis of AWS cloud costs, waste audits, and budget insights across multiple profiles and regions.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to perform read-only PostgreSQL DBA work across versions 12–18, including performance analysis, slow query identification, bloat detection, lock and deadlock monitoring, autovacuum and schema inspection, and replication/WAL checks via natural language. Works with regular user permissions on RDS/Aurora without requiring any extensions, while optionally leveraging pg_stat_statements and pg_stat_monitor for deeper query analytics.-
- FlicenseNot gradedqualityAmaintenanceEnables natural-language querying and analysis of AWS spending and model-invocation usage, including detailed breakdowns by service, region, account, day, and instance type.-
- FlicenseNot gradedqualityAmaintenanceEnables natural-language PostgreSQL operations and monitoring across PG 12-18 without requiring extensions, covering performance analysis, slow-query identification, bloat detection, lock and connection monitoring, autovacuum inspection, replication/WAL status, and schema relationship discovery. All operations are read-only and production-safe, working with regular user permissions on RDS/Aurora as well as self-hosted instances.-