Cursor Setup¶
Connect Cursor (AI-first code editor) to Hydrata's MCP server.
Prerequisites¶
- Cursor editor installed
- A Hydrata account with API token
Configuration¶
Create or edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"hydrata": {
"url": "https://hydrata.com/mcp/",
"transport": "streamable-http",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Verify Connection¶
- Open Cursor's AI chat panel
- Type: "List my Hydrata projects"
- Cursor should call the
list_projectstool and return results
Usage¶
In Cursor's chat, interact with your flood models:
Create a flood model project, upload terrain data from ./data/site_dem.tif,
and run a simulation with 50-year rainfall
Cursor will chain the Hydrata MCP tools to complete the workflow.
Tips¶
- Project-scoped config: Keep
.cursor/mcp.jsonin your project root for per-project setup - Token security: Don't commit tokens to git — use environment variables or add
.cursor/to.gitignore - Composer mode: Use Cursor's Composer for multi-step workflows — it handles tool chaining well