Skip to main content

A Model-Controlled Panel for managing Amazon RDS instances

Project description

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.git

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:

  1. Get RDS instance details:
await get_db_info(
    database_name="your-db-instance",
    region="your-aws-region"
)
  1. Get database metrics:
await get_database_metrics(
    database_name="your-db-instance",
    time_range_minutes=30
)
  1. Get slow queries:
await get_database_queries(
    database_name="your-db-instance",
    time_range_minutes=30
)
  1. 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

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

iflow_mcp_neoai_agent_rds_mcp-0.1.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

iflow_mcp_neoai_agent_rds_mcp-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iflow_mcp_neoai_agent_rds_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_neoai_agent_rds_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 152201bbbf3e72c998cb21ffda95db1c2f5407d367337f2058c93331fbd790bc
MD5 c89dfa57e4938a4129cfaa20db243737
BLAKE2b-256 ef449faf4596c012d9451eb2763e0ce8a1c0df553ea6f1e55ce19a05d9b71e9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iflow_mcp_neoai_agent_rds_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_neoai_agent_rds_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d841d83b803c73432210edede579fff959605c3bc7dc539791b107f61cfe6b9c
MD5 f7824a3b5bd4060749c49808f52fd2ca
BLAKE2b-256 5b1e4336253faea8c9e8674bc904acae212ebdfe18e0f5e7ad087f138959b614

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