This topic explains how to integrate Devart MCP Server with Codex so that you can interact with your data source in the Codex app. You can configure the integration by using the MCP Server connection manager or by editing the Codex configuration file.
Note
Before you start, make sure that MCP Server has an active connection to the data source. For instructions, see Connection configuration.
1. In Devart MCP Server, open the connection for editing in one of these ways:

2. On the Integration tab, under Codex, click Register.
3. Optional: Modify the connector name that will appear in the Codex app.
4. Click Save.

5. Restart Codex.
Devart MCP Server is now integrated with Codex, and the connector appears in the Codex app in Settings > MCP servers.
Note
If you have multiple connections configured in Devart MCP Server, repeat the integration process for every connection. Connector names must be unique.

1. Open config.toml, the Codex configuration file.
2. Add one of the following configuration entries, depending on the transport protocol used by MCP Server:
STDIO
[mcp_servers.devart]
command = "C:\\Program Files\\Devart\\MCP Server for <data_source_name>\\Devart.AI.McpServer.Odbc.<data_source_name>.exe"
args = ["run", "devart"]
where:
devart is the connector name that will appear in Codex.
<data_source_name> is the name of the target data source.
HTTP
[mcp_servers.devart]
command = "npx"
args = ["-y", "mcp-remote", "http://localhost:5500/sse"]
where:
devart is the connector name that will appear in Codex.5500 is the port specified in the MCP settings for the connection.
3. Save the file.
4. Restart Codex.

To use multiple connections in Codex, add another connector configuration entry to config.toml.
[mcp_servers.devart_mysql]
command = "npx"
args = ["-y", "mcp-remote", "http://localhost:5500/sse"]
[mcp_servers.devart_pg]
command = "npx"
args = ["-y", "mcp-remote", "http://localhost:3306/sse"]