Mcp
Published 10 September 2026
Description
The mcp command starts the Flyway MCP Server, which exposes tools that let AI coding
agents work with a Flyway project directly.
Usage examples
Starting the server with the state toolset
The minimal command needed to run the server is:
> flyway mcp -mcp.toolsets=develop_state
This enables only the tools for keeping the schema model and development database in sync. Use
-mcp.toolsets=develop_migrations to also enable the tools that generate migration scripts, or -mcp.toolsets=all to
enable every toolset (currently identical to develop_migrations). See
Flyway MCP Server for how to configure this command in an AI tool's .mcp.json (or
equivalent), and Configuration for what each toolset enables and
other parameters.
Parameters
Required
| Parameter | Namespace | Description |
|---|---|---|
toolsets |
mcp | The toolsets to enable on the MCP server. If omitted, the server fails to start with mcp.toolsets must be configured with at least one toolset. See Configuration. |
Optional
| Parameter | Namespace | Description |
|---|---|---|
maxLogs |
mcp | The maximum number of MCP server log files to keep on disk. Defaults to 100. Log locations are listed under File system access. |
Universal commandline parameters are listed here.
This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved