โ† All Tools ๐Ÿ—„๏ธ

Database

Connect your AI to MySQL, PostgreSQL, Redis, MongoDB, and more

6 tools available

Database tools let your AI agent connect to your databases and execute queries or commands directly. Support for MySQL, PostgreSQL, Redis, MongoDB, ClickHouse, and Elasticsearch โ€” all through a single MCP endpoint.

Connection URLs are stored securely via environment variables. Set your database URL once, and your AI can query your data, run migrations, analyze schemas, and manage records โ€” all from your AI chat.

Benefits

Why use Database?

โœ“ 6 databases supported: MySQL, PostgreSQL, Redis, MongoDB, ClickHouse, Elasticsearch
โœ“ Secure credential storage via encrypted environment variables
โœ“ No database client installation needed
โœ“ Parameterized queries to prevent SQL injection
โœ“ Read and write operations for full data management
Use Cases

What can you do?

Data analysis

Ask your AI to query your database, analyze results, and generate insights โ€” all conversationally.

Schema exploration

Have your AI explore table structures, indexes, and relationships in your database.

Data migration

Let your AI help migrate data between tables, databases, or even different database engines.

Monitoring queries

Run diagnostic queries to check database health, slow queries, or resource usage.

Getting Started

How to set up

Store your connection URL

Ask your AI: "Set MYSQL_URL to mysql://user:pass@host:3306/db" (works for any supported database).

Start querying

Ask your AI to run queries: "Show me all tables" or "Find users created this week".

Add more databases

Set POSTGRES_URL, REDIS_URL, MONGODB_URL, CLICKHOUSE_URL, or ELASTICSEARCH_URL for additional connections.

Your Endpoint

Connect with Database

Use this URL to connect with only Database + Environment Variables enabled.

MCP Endpoint
https://mcp.runtools.link/{YOUR_KEY}
๐Ÿ” Brave Search
6 tools View โ†’
๐Ÿง  Memory
9 tools View โ†’
๐Ÿ“„ Pandoc
2 tools View โ†’
๐ŸŒ Web
2 tools View โ†’
๐Ÿ”‘ Environment Variables
3 tools View โ†’
๐Ÿ“‘ WeasyPrint
1 tool View โ†’
๐Ÿ’ญ Sequential Thinking
1 tool View โ†’
๐Ÿ—„๏ธ Database
6 tools
๐Ÿ“ Filesystem
11 tools View โ†’
๐Ÿ“ง Email
11 tools View โ†’
๐Ÿ‘ค Account
2 tools View โ†’
Tools

Database Tools

database_mysql_query
2 args
Execute a SQL query on a MySQL database. The connection URL is read from the MYSQL_URL environment variable, which must be set first using the 'env_vars_set' tool (e.g. env_vars_set key='MYSQL_URL' value='mysql://user:pass@host:3306/database'). Supports SELECT, INSERT, UPDATE, DELETE. Use ? placeholders for parameterized queries.
Arguments
Name Type Description
query string SQL query to execute required
params union[] Query parameters for prepared statements. Use ? placeholders. optional
database_postgres_query
2 args
Execute a SQL query on a PostgreSQL database. The connection URL is read from the POSTGRES_URL environment variable, which must be set first using the 'env_vars_set' tool (e.g. env_vars_set key='POSTGRES_URL' value='postgresql://user:pass@host:5432/database'). Supports SELECT, INSERT, UPDATE, DELETE. Use $1, $2 placeholders for parameterized queries.
Arguments
Name Type Description
query string SQL query to execute required
params union[] Query parameters for prepared statements. Use $1, $2 placeholders. optional
database_redis_command
2 args
Execute a Redis command. The connection URL is read from the REDIS_URL environment variable, which must be set first using the 'env_vars_set' tool (e.g. env_vars_set key='REDIS_URL' value='redis://user:pass@host:6379'). Supports GET, SET, HGET, HSET, LPUSH, LRANGE, DEL, KEYS, and all standard Redis commands.
Arguments
Name Type Description
command string Redis command to execute (GET, SET, HGET, LPUSH, DEL, KEYS, etc.) required
args string[] Arguments for the Redis command (e.g. for SET: ['mykey', 'myvalue']) optional
database_mongodb_query
7 args
Execute a MongoDB operation (find, insertOne, updateOne, deleteOne, aggregate, etc.). The connection URL is read from the MONGODB_URL environment variable, which must be set first using the 'env_vars_set' tool (e.g. env_vars_set key='MONGODB_URL' value='mongodb://user:pass@host:27017/database'). The database is taken from the URL.
Arguments
Name Type Description
collection string MongoDB collection name required
operation enum MongoDB operation to execute
Values: find findOne insertOne insertMany updateOne updateMany deleteOne deleteMany aggregate countDocuments
required
filter record Query filter document (for find, findOne, update, delete, countDocuments) optional
document unknown Document to insert (for insertOne) or array of documents (for insertMany) optional
update record Update document (for updateOne, updateMany). Use $set, $inc, etc. optional
pipeline record[] Aggregation pipeline stages (for aggregate) optional
options record Additional options: { sort, limit, skip, projection } optional
database_clickhouse_query
1 arg
Execute a ClickHouse SQL query. The connection URL is read from the CLICKHOUSE_URL environment variable, which must be set first using the 'env_vars_set' tool (e.g. env_vars_set key='CLICKHOUSE_URL' value='http://user:pass@host:8123/database'). Supports SELECT, INSERT, CREATE TABLE, and other ClickHouse SQL statements.
Arguments
Name Type Description
query string ClickHouse SQL query to execute required
database_elasticsearch_query
3 args
Execute an Elasticsearch REST API request. The base URL is read from the ELASTICSEARCH_URL environment variable, which must be set first using the 'env_vars_set' tool (e.g. env_vars_set key='ELASTICSEARCH_URL' value='http://user:pass@host:9200'). Send requests to any Elasticsearch endpoint: search, index documents, manage indices, etc.
Arguments
Name Type Description
method enum HTTP method
Values: GET POST PUT DELETE
required
path string API path (e.g. '/myindex/_search', '/myindex/_doc/1', '/_cat/indices') required
body record Request body as JSON (for POST/PUT requests, e.g. search query DSL) optional
Explore More

Other Tool Categories

Discover more tools to supercharge your AI agent

โ† View All Tools