MIDAS MCP Server MIDAS MCP Server: Connecting Cursor

Once you've installed and enabled the MIDAS MCP Server, here's how to connect Cursor to MIDAS.

Option 1: Project-level (current project only)

  1. Select Cursor → Settings → Cursor Settings → Tools & MCP
  2. Click New MCP Server. This creates a file called .cursor/mcp.json in your project root.
  3. Add the following configuration, replacing the URL and key with your own details:
{
  "mcpServers": {
	"MIDAS": {
		"url": "https://your-midas-url/mcp.pl",
		"headers": {
			"X-MCP-Key": "your-midas-mcp-key"
		}
	}
  }
}
  1. Save the file. The MIDAS MCP Server will now be available only in the current project.

Option 2: Global (all projects)

To make the MIDAS MCP Server available in every project you open in Cursor, you can edit your global MCP configuration file directly:

  • On macOS or Linux, open ~/.cursor/mcp.json
  • On Windows, open %USERPROFILE%\.cursor\mcp.json

If this file does not exist, create it. Add the same configuration block as outlined in Option 1 above. The MIDAS MCP Server will then be available across all your projects.

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.