Run link outreach from Codex
Add BacklinkGenie to Codex once and use it from the Codex CLI or IDE extension: review pitches against what you just shipped, draft replies to editors, and check which links went live.
- Connects with
- codex mcp add (HTTP)
- Auth
- API key (bg_live_...)
- Tools available
- All 22, on every plan
How do I connect BacklinkGenie to Codex?
4 steps, about two minutes. You need an API key from BacklinkGenie and the config below.
-
1
Create an API key
Create the key in BacklinkGenie under Settings → MCP. Keys start with bg_live_ and are shown once. Creating a key needs an active paid plan (Starter, Growth or Agency).
-
2
Put the key in an environment variable
Codex reads the token from an environment variable, so the key never sits in a config file.
~/.zshrc or ~/.bashrcexport BACKLINKGENIE_API_KEY="bg_live_your_key" -
3
Add the server
Run this once, or add the same table to ~/.codex/config.toml.
Terminalcodex mcp add backlinkgenie --url https://app.backlinkgenie.com/mcp \ --bearer-token-env-var BACKLINKGENIE_API_KEY -
4
Or edit config.toml
Same result, written by hand. Then type /mcp in a Codex session to check the tools loaded.
~/.codex/config.toml[mcp_servers.backlinkgenie] url = "https://app.backlinkgenie.com/mcp" bearer_token_env_var = "BACKLINKGENIE_API_KEY"
We shipped CSV export today. Which pending pitches go to posts about reporting tools? Rewrite those to mention it.
3 of the 8 pending pitches go to reporting roundups (techradar.com, zapier.com, g2.com). I rewrote the second paragraph of each to mention CSV export; all three passed the quality check. Approve them, or see the new text first?
Tools used in this example
list_drafts
Pitches waiting for your approval, with the post, contact and why it fits.
edit_draft
Changes a pitch's subject or body. Edits go through the quality check before they're saved.
Also try
Codex can use all 22 tools. See the full tool list on the MCP page or browse example link building prompts.
Who is the Codex integration for?
Developers using OpenAI's coding agent in the terminal or IDE who want pitches checked against what the code actually ships.
Does Codex ask before sending?
Codex's approval mode covers MCP calls. Use the default mode that asks before actions when approve_draft and send_reply are available. On top of that, BacklinkGenie's server tells every client to show you the exact email and wait for a yes before approve_draft or send_reply.
What goes wrong in Codex setup?
-
Variable not set in the IDE
The IDE extension only sees BACKLINKGENIE_API_KEY if the editor was launched from a shell that exports it. Restart the editor from the terminal, or set the variable system-wide.
-
Slow calls time out
If a call fails with a timeout, raise tool_timeout_sec under [mcp_servers.backlinkgenie] in config.toml.
-
Check what loaded
Type /mcp in a Codex session. If BacklinkGenie is listed with no tools, the key was rejected.
What can you do from Codex?
Eight step-by-step guides, each with a prompt written for Codex, the tools it calls and an example answer.
Find link opportunities from Codex
Codex reads the repo for context on its own. If the run seems to time out, raise tool_timeout_sec for the server in ~/.codex/config.toml, though run_agent returns as soon as the run starts.
02Review and approve pitches from Codex
Codex's approval mode applies to MCP calls too. Run it in the default mode that asks before actions, not full auto, when approve_draft is in reach.
03Reply to editors from Codex
Codex only sees the files in the folder you started it in. Start it in your marketing site repo so it can pick real URLs.
04Import target posts from Codex
Codex can update the CSV after the import, so your tracking file and BacklinkGenie stay in step.
05Monitor your backlinks from Codex
Codex asks before mark_link_won because it writes to your account. Reading links needs no approval.
06Get a weekly link report from Codex
Codex can match the JSON shape your dashboard already reads, so the report drops into existing tooling.
07Update your pitch after a launch from Codex
Codex can check the feature in the code before it goes into a pitch, so you don't promise something that isn't merged yet.
08Manage your outreach blocklist from Codex
Blocklists are per site. Codex can loop over list_workspaces so every site gets the same list.
What is BacklinkGenie, and what stays the same as the dashboard?
BacklinkGenie is an AI link-building outreach agent for SaaS and online businesses. It buys a separate sending domain and warms the mailbox, finds relevant posts in your niche (best-of roundups, comparison and alternatives pages, resource pages, how-to guides and niche blogs), finds and verifies the editor, writes one pitch per post, sends it and follows up, then checks every won link weekly. The goal is a higher Domain Rating, more organic traffic and more mentions in ChatGPT, Perplexity and Google AI Overviews.
Codex works on the same account, sites and mailboxes as the dashboard, so you can switch between them freely. Pitches wait for your approval unless you turn on Autopilot (we suggest about two weeks of reviewing first), every edit goes through the quality check, and sending stays inside each mailbox's daily limit. Read more about how the outreach agent works, or check whether it's a better fit than Pitchbox or BuzzStream for your team. New to MCP? How MCP servers work for SEO explains the setup in plain terms, and the other integrations use the same connection.
Questions people ask
Does the IDE extension use the same setup?
Yes. The Codex CLI and IDE extension share ~/.codex/config.toml, so adding the server once covers both.
Why an environment variable instead of the key in the file?
bearer_token_env_var keeps the secret out of config files you might sync or commit. Codex reads the variable when it connects.
What does a 401 or an upgrade message mean?
A 401 means the key is wrong, revoked or the variable isn't set in the shell Codex started from. If the tools load but answer with an upgrade message, the account has no active paid plan; only start_free_report runs without one.
What does it cost to use BacklinkGenie from Codex?
MCP access is on every plan, and every feature is on every plan: Starter $99/mo (1 site, 1 mailbox, 1,000 emails), Growth $249/mo (3 sites, 3 mailboxes, 3,000 emails), Agency $499/mo (8 sites, 8 mailboxes, 8,000 emails). Pitches and follow-ups written through Codex use the same monthly emails as the dashboard. Reading data and replying to editors don't use any.
Related
BacklinkGenie for Cursor
MCP server in mcp.json. Sign in, no key.
BacklinkGenie for Claude Code
claude mcp add (HTTP). Sign in, no key.
BacklinkGenie for Gemini CLI
gemini mcp add (HTTP). Uses an API key.
MCP server reference
Endpoint, auth and every tool in detail.
Prompts to try
A library of prompts for pitching, replies and reporting.
Pricing
From $99/mo. MCP access is on every plan.
Get your free prospect report first
Up to 40 posts worth pitching, no card needed. Connect Codex once you subscribe.