redshift-mcp-server: Support for multiple concurrent queries per cluster/database
Describe the feature
Support multiple concurrent execute_query MCP tool invocations against the same Redshift cluster (or serverless workgroup) and same database, without Session is not available errors and without forcing callers to wait for unrelated queries to finish on a single shared session.
Each concurrent execution should remain read-only (today’s BEGIN READ ONLY → user SQL → ROLLBACK pattern is fine), but isolated so transactions do not interleave on one Data API session.
Use Case
We use awslabs.redshift-mcp-server from Cursor (uvx awslabs.redshift-mcp-server@latest) for agentic workflows against Amazon Redshift.
We often need overlapping read-only work on one warehouse, for example: Running an approved analytical query while a small diagnostic runs in parallel (MAX(date_column), row counts, freshness checks). Multi-step analysis where independent SELECT statements could run concurrently (same cluster/database, same IAM principal). Host LLM / sub-agent patterns that may invoke multiple MCP tools in parallel.
Current behavior: Parallel execute_query calls for the same (cluster_identifier, database) fail with Session is not available (or behave as if only one session exists).
Desired behavior: Bounded concurrency (pool of sessions or one session per in-flight query) so agents can safely run N ≥ 2 read-only queries in parallel on the same cluster/database.
Proposed Solution
No response
Other Information
Package: awslabs.redshift-mcp-server (e.g. 0.0.31 via PyPI / uvx) Client: Cursor MCP, tool execute_query Region: typically us-east-1 Team constraint: Our query pipeline currently enforces sequential MCP execution as a workaround; we would relax that only after the server supports safe concurrent read-only queries.
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Source: awslabs/mcp