Table of Contents
← Hide Table of Contents
MIDAS MCP Server: Connecting Google Gemini CLI
Once you've installed and enabled the MIDAS MCP Server, here's how to connect Google Gemini's Command Line Interface (CLI) to MIDAS.
Note: This requires Node.js to be installed (see Prerequisites)
- Open (or create) your Gemini CLI settings file, normally at
~/.gemini/settings.json. - Add the following, replacing the URL and key with your own details:
{
"mcpServers": {
"MIDAS": {
"httpUrl": "https://your-midas-url/mcp.pl",
"headers": {
"X-MCP-Key": "your-midas-mcp-key"
}
}
}
}
- Save the file, and restart Gemini CLI.
- Type
/mcpwithin Gemini CLI to confirm that the MIDAS server has connected, and to see the available tools.
To connect with the MCP Server and inherit the permissions of a specific user account, you can optionally set a "
X-Query-As" header in your configuration, with its value set to the email address associated with a user account in your MIDAS system.If you have multiple databases setup in your MIDAS system, you can select a non-default database by optionally setting a "
X-MIDAS-DB" header in your configuration, with its value set to the internal ID of the appropriate database.
MIDAS MCP Server: Connecting Google Gemini CLI