Overview
MCP servers can be configured through environment variables, command-line arguments, and client-specific configuration files. This guide covers configuration for Oracle, MySQL, and MikroTik MCP servers across different clients.Environment Variables
Oracle Database
The Oracle MCP server uses environment variables for secure credential management:ORACLE_USER- Oracle database username (optional if usingorcl-connecttool)ORACLE_PASSWORD- Oracle database password (optional if usingorcl-connecttool)
MySQL Database
The MySQL MCP server uses the following environment variables:MYSQL_USER- MySQL database username (optional if usingmysql-connecttool)MYSQL_PASSWORD- MySQL database password (optional if usingmysql-connecttool)
MikroTik RouterOS
The MikroTik MCP server requires:MK_USER- MikroTik username (required if providing host at startup)MK_PASSWORD- MikroTik password (required if providing host at startup)
Environment variables are optional if you plan to use the respective
connect tools after server startup. However, they are required for automatic connection on startup.Connection Strings
Oracle Connection Formats
The Oracle connection string should contain only host, port, and service/SID information without embedded credentials:host:port/service_name- Example:host.docker.internal:1521/freepdb1host:port:SID- Example:localhost:1521:XE
MySQL Connection Formats
MySQL connection strings support:mysql://host:port/dbname- Full URI formathost:port/dbname- Simplified format (e.g.,host.docker.internal:3306/mydb)
MikroTik Connection
MikroTik connections require:host- IP address of the router (e.g.,192.168.88.1)secure- Optional boolean for SSL/TLS (default:false)
Claude Desktop Configuration
Oracle with Docker
Add toclaude_desktop_config.json:
MySQL with Docker
MySQL with NPX
MikroTik with NPX
VS Code Configuration
Add MCP Configuration
Add the MCP server configuration to your user settings or create
.vscode/mcp.json in your workspace.MySQL Example for VS Code
The
mcp key is not needed when using .vscode/mcp.json in your workspace.Antigravity Code Editor Configuration
Place configuration in~/.gemini/antigravity/mcp_config.json:
Runtime Connection Tools
If you prefer not to configure credentials at startup, you can connect at runtime using dedicated tools:Oracle Connect Tool
MySQL Connect Tool
MikroTik Connect Tool
Using runtime connection tools allows you to omit connection strings and credentials from the initial configuration, providing greater flexibility.
Protocol Support
Oracle
Supports SQLNet protocol on default port 1521.MySQL
Supports both plain TCP (port 3306) and SSL/TLS connections.MikroTik
- Plain TCP: Port 8728 (default)
- SSL/TLS: Port 8729 (set
secure: true) - Supports both modern (v6.43+) and legacy login methods