OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Connect Claude Code to OptinMonster

How to Connect Claude Code to OptinMonster

Do you want to create and manage your OptinMonster campaigns from your terminal? With the OptinMonster MCP server, Claude Code connects to your account, so you can describe what you want in plain English, and it does the work for you with only the permissions you grant. In this article, you’ll learn how to connect Claude Code to OptinMonster.

Before You Start

  • You’ll need Claude Code installed.
  • You’ll sign in to OptinMonster during setup to approve the connection, so have your login ready.

Connecting Claude Code to OptinMonster

Note:

The command in step 1 adds OptinMonster to the folder you run it in. If you want OptinMonster in every folder, run this version instead: claude mcp add --transport http --scope user optinmonster https://mcp.optinmonster.com/mcp.

If you’d rather sign in from the terminal, run claude mcp login optinmonster after step 1, and then follow steps 7 to 9. When you’re done, the terminal shows Authenticated with “optinmonster”. Its tools are now available in Claude Code.

To connect Claude Code to OptinMonster, follow these steps:

  1. In your terminal, run claude mcp add --transport http optinmonster https://mcp.optinmonster.com/mcp. Claude Code confirms that it added the server to your local config.
    The claude mcp add command and the line saying it added the server to local config.
  2. Next, start Claude Code in the same folder. If Claude Code asks whether you trust the folder, choose Yes, I trust this folder. A notice then says 1 MCP server needs authentication · run /mcp.
    The notice 1 MCP server needs authentication · run /mcp.
  3. Then, type /mcp and press Enter.
  4. Under Local MCPs, select optinmonster, which shows needs authentication, and press Enter.
    Manage MCP servers with optinmonster marked needs authentication.
  5. After that, select Authenticate and press Enter.
    The Optinmonster MCP Server details with Authenticate.
  6. Your browser opens on the Authorize OptinMonster MCP Server page. If it doesn’t, copy the link Claude Code shows and paste it into your browser.
    The message that a browser window will open and the copy-this-URL line.
  7. Under Authorizing for the account, check the account shown. The connection only works on that one. If you have more than 1 account, then you can select another one and click Switch.
    The Authorize OptinMonster MCP Server page with Authorizing for the account.
  8. Further down the page, under Choose what OptinMonster MCP Server can do, pick a level for each area.
    The Account and Campaigns rows with their levels.
  9. When you’re ready, click Authorize Access. Your browser shows Authentication successful, and you can close that tab.
    The Authorize Access and Deny buttons.
  10. Back in Claude Code, you’ll see Authentication successful. Connected to optinmonster.
    Authentication successful. Connected to optinmonster.
  11. Finally, to check it, type /mcp again and look for connected next to optinmonster.
    Optinmonster marked connected with its tool count.

FAQs

Does removing OptinMonster from Claude Code end its access?

No. Running claude mcp remove optinmonster removes OptinMonster from Claude Code, but its access in OptinMonster stays active. To end it, revoke it in OptinMonster.

Troubleshooting

Why does Claude Code tell me “The OptinMonster authorization is no longer valid” when /mcp shows connected?

The /mcp list can still show optinmonster as connected after the connection has stopped working, so look for this message instead of that status. The connection stops working when:

  • It’s more than 30 days old.
  • Someone clicked Revoke Access on its row under API. The steps to disconnect an AI assistant show where that row is.

To fix it, open /mcp, select optinmonster, and choose Re-authenticate.


Still stuck?

How can we help?

Last updated on


Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com