Use OutreachGenie in Codex
Add OutreachGenie to Codex so local coding sessions can use workspace CRM tools through the MCP server.
You can read this guide without an account. Sign in to create an API key or authorize a workspace connection.
OAuth connections
ChatGPT and Claude connect through OutreachGenie's OAuth flow: sign in, choose a workspace, and approve only the requested scopes. The API-key instructions below remain available for Codex and Claude Code during the migration.
MCP Server URL
https://api.outreachgenie.ai/mcp
API key env
LINKEDIN_CRM_API_KEY
Quickstart
Create an OutreachGenie API key
Open OutreachGenie settings. In OutreachGenie, open Settings and go to API keys. Create a workspace API key for Codex.
Set the key locally. Save the key in LINKEDIN_CRM_API_KEY on the machine where Codex runs. Restart Codex after changing environment variables so the process can read the token.
Use the hosted MCP server. Codex connects to https://api.outreachgenie.ai/mcp as a Streamable HTTP MCP server. Use NEXT_PUBLIC_MCP_API_BASE_URL when self-hosted docs should point to a different backend.
Create an OutreachGenie API key
LINKEDIN_CRM_API_BASE_URL=https://api.outreachgenie.ai
LINKEDIN_CRM_API_KEY=lo_live_xxxVerify Runtime API access
Verify first. Run the verification request from the same machine where Codex will connect to the MCP server.
Expected result. The response should identify the workspace context. A 401 or 403 means the key is wrong, revoked, or not accepted by that backend.
Verify Runtime API access
curl -H "Authorization: Bearer $LINKEDIN_CRM_API_KEY" \
"$LINKEDIN_CRM_API_BASE_URL/api/v1/runtime/auth/verify"Connect with the Codex CLI
Use the Codex CLI. Run this command once to add OutreachGenie as a named Streamable HTTP MCP server in Codex.
Bearer token environment variable. Codex reads LINKEDIN_CRM_API_KEY and sends it as the Authorization bearer token when calling the MCP server.
Confirm registration. Use codex mcp list, codex mcp get linkedin-crm, or /mcp inside Codex to confirm the server is enabled.
Connect with the Codex CLI
codex mcp add linkedin-crm \
--url https://api.outreachgenie.ai/mcp \
--bearer-token-env-var LINKEDIN_CRM_API_KEYOr edit config.toml
Manual config option. Add this block to ~/.codex/config.toml for a personal setup, or to a trusted project .codex/config.toml when the server should be repo-scoped.
Do not store the key in config. Keep the live key in LINKEDIN_CRM_API_KEY. The config should only name the environment variable.
Or edit config.toml
[mcp_servers.linkedin-crm]
url = "https://api.outreachgenie.ai/mcp"
bearer_token_env_var = "LINKEDIN_CRM_API_KEY"
enabled = true
startup_timeout_sec = 10
tool_timeout_sec = 60Restart and confirm tools
Restart Codex. Restart the CLI or IDE session after adding the server or changing the API key environment variable.
Check the tool list. Use /mcp and start with a read-only verification prompt before importing prospects or creating lists.
Restart and confirm tools
/mcp
Use LinkedIn CRM MCP to verify my workspace connection.
Then list the available CRM tools before taking any write action.What you can do
Use natural language. Ask Codex for the CRM outcome you want. The MCP server handles the underlying tools, so users do not need endpoint names.
Confirm write actions. For imports, list creation, or campaign preparation, ask for a summary first and approve the action only after the plan is correct.
Workspace checks
- Confirm the connected workspace and available tools.
- Check permissions, usage limits and runtime health before using write actions.
- Ask the assistant to explain what it can do in this CRM workspace.
Prospects
- Search and filter prospects or look up a LinkedIn profile URL.
- Read full records and activity, update fields, and request enrichment.
- Export matching records and confirm deletions when needed.
Prospect lists and imports
- Read, create, update and export prospect lists.
- Create a list for a new audience, event, or search.
- Import, copy, add or remove list members and report created or matched records.
Flows and campaigns
- Inspect campaign progress, activity and upcoming actions.
- Edit flows and campaign schedules, then confirm activation, pause, resume or stop.
- Review failed executions before confirming a retry.
Senders and inbox
- List LinkedIn accounts with their status, online presence and today's usage, then pause or resume one.
- Choose which accounts run a campaign and check each account's share of its prospects.
- Read and filter inbox conversations, then confirm replies sent from each thread's own account.
Content and publishing
- Create and revise content with versions, snippets, saved posts and voice profiles.
- Discover identities, attach uploaded media, manage reviews and collaborators.
- Confirm publishing or scheduling, cancel schedules and inspect post results.
Permissions and data scope
Workspace scoped
OAuth binds the integration to the workspace selected during consent. Legacy API keys bind to their workspace. Your membership, role and content permissions still apply.
Read and write
OAuth scopes separate reads, CRM/content changes, campaign control and publishing. Sensitive actions require your explicit confirmation. Every write carries a stable request ID for safe retries.
Revoke access
Revoke OAuth access when an integration no longer needs it. For legacy clients, revoke and recreate exposed API keys in Settings -> API keys. Membership removal also stops access.
Troubleshooting
Authentication
Authentication errors usually mean the API key was copied incorrectly, revoked, or belongs to another workspace.
Connection
Connection errors usually mean the client cannot reach the configured backend or MCP server domain.
Do
Do not commit live workspace API keys to .mcp.json, config.toml, screenshots, or support tickets.