Codex

You can connect the hosted BoldSign MCP Server to OpenAI Codex to automate eSignature workflows through natural language. This setup uses API key authentication with the BoldSign MCP endpoint.

  • Obtain your BoldSign API key from API key settings.
  • Choose the hosted MCP endpoint from Regional Endpoints that matches your BoldSign account region.
  • Ensure that Codex is installed and supports connecting to external MCP servers.

Set the BOLDSIGN_API_KEY environment variable before starting Codex.

Linux/macOS

export BOLDSIGN_API_KEY="your-api-key-here"

Windows (PowerShell)

$env:BOLDSIGN_API_KEY="your-api-key-here"

Never hardcode your API key directly in source code. Use environment variables or a secrets manager to keep credentials secure.

Add the BoldSign MCP server configuration to your Codex configuration file.

Configuration file locations

  • Linux/macOS: ~/.codex/config.toml
  • Windows: C:\Users\<username>\.codex\config.toml

Add the following configuration:

[mcp_servers.boldsign]
url = "https://mcp.boldsign.com/mcp"
env_http_headers = { "X-API-Key" = "BOLDSIGN_API_KEY" }

Replace the endpoint with the regional URL that matches your BoldSign account. Using the wrong region can cause authentication failures.

Run the following command to verify that the MCP configuration is valid:

codex mcp list

The BoldSign MCP server should appear in the list without any configuration errors.

Start Codex in your project directory:

codex

Once Codex is running, use:

/mcp

Verify that the BoldSign MCP server appears in the active MCP server list and that its tools are available.

Start with a read-only prompt to verify everything is working:

  • List my BoldSign templates
  • Show my recent documents
  • List contacts in my BoldSign account
  • Server not connecting? Run codex mcp list. If the BoldSign MCP server is not listed, verify your config.toml file and ensure it is saved in the correct location.
  • Authentication errors? Ensure BOLDSIGN_API_KEY is set and valid.
  • Wrong region? Verify the MCP endpoint matches your BoldSign account region.