QuickstartCodex MCP Setup

Codex MCP Setup

Connect Codex to the Documentation.AI reader MCP for read-only docs search and to the central TextMine product MCP for tools.

Use this setup when Codex should discover TextMine docs and API schemas through the Documentation.AI reader MCP, or call the TextMine MCP product tools with a TextMine API key.

Which endpoint to use

NeedEndpoint
Read developer docs and schemas (read-only, no API key)https://textmine.documentationai.com/_mcp
Operate TextMine through central product MCP tools (requires a tm_... API key)https://mcp.textmine.com/mcp

Use https://mcp.textmine.com/mcp for public TextMine MCP setup. Use environment-specific MCP hosts only for private preview, staging validation, or dedicated deployments when TextMine explicitly issues that host.

Prerequisites

  • A TextMine API key for the user, integration, or third-party agent service account.
  • Codex with remote HTTP MCP support.

If an autonomous third-party agent does not yet have a key, use Agent self-service signup. Signup is REST-first and returns an encrypted tm_... service-account key for the trusted runtime to store.

Store the API key in an environment variable:

export TEXTMINE_API_KEY="tm_your_api_key"

Add the Documentation.AI reader MCP server for read-only docs search:

codex mcp add textmine-docs \
  --url https://textmine.documentationai.com/_mcp

Add the TextMine MCP server when Codex should use product tools directly:

codex mcp add textmine \
  --url https://mcp.textmine.com/mcp \
  --bearer-token-env-var TEXTMINE_API_KEY

The Documentation.AI reader MCP server is read-only docs search and needs no TextMine key. Generated API-reference calls still use the product key, so the TextMine MCP server keeps the bearer token. If a client cannot set Authorization, use X-TextMine-Api-Key with the same tm_... key.

Check the servers are configured:

codex mcp list

First prompt to try

Use TextMine docs to read the For Agents page, list the relevant Public API V3 operation IDs, then explain the safe sequence for importing a Google Drive file into Vault.

Operating guidance

Codex should use listVaults and other discovery calls before mutations, and should ask before destructive changes, new workflows, scheduled agents, provider disconnects, or credential creation.

Keep tm_... keys in environment variables or secure credential storage. Do not paste real keys into prompts, repo files, task transcripts, or shared docs.