See if AI recommends your brand, or your competitor Book a demo →

Guide · MCP for developers

Track Your AI Visibility from Claude Code and Codex

One terminal command connects your coding agent to Howseen. Then ask it, in plain English, which buyer questions ChatGPT, Gemini, Perplexity and Google AI answer with a competitor instead of you, and what to fix first.

Raphaël AubryBy Raphaël Aubry, founder of Howseen AI · Updated

Short answer

How do I track AI visibility from Claude Code or Codex?

Create a Howseen API key, add the Howseen MCP server with one command, then ask your agent which buyer questions name a competitor instead of you.

The Howseen MCP server lives at https://app.howseen.ai/api/mcp and speaks Streamable HTTP, so both agents connect to it like any remote server. It gives your agent 26 tools over your Howseen data: the same visibility %, competitors and cited sources as your dashboard, for your own brands only. Read tools work with any key; action tools only run after a preview and your confirmation.

"MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems."

Why the terminal

Why developers and agencies want this data next to their code

The person who can fix a visibility gap (a page, a comparison table, a docs section) usually works in the repo. Putting the gap in the same terminal removes the dashboard round trip.

If the idea of AI visibility is new to you, read what GEO (generative engine optimization) is and how AI chooses which brands to recommend first.

Real example

What it looks like on our own brand

On October 6, 2026, we asked Claude, connected through the Howseen MCP server, about Howseen itself, using our scan of October 5. The answer was not flattering, which is the point.

Buyer questions where a competitor was named and we were not

90%

45 of 50 tracked questions

Howseen visibility

4%

Scan of October 5, 2026

Lost answers citing the #1 page

19

A "best AI visibility tool" article on Zapier

The useful part is the last number. The page AI cited most often in the answers we lost was a third party list article, so the first fix is to get listed there, not to rewrite our homepage. Different engines trust different sources: our study of 5,331 AI answers found YouTube cited in 45% of Google AI Overviews and in 0 of 1,164 ChatGPT answers. For how tools compare on this kind of data, see AI visibility tools.

Setup 1

Connect Claude Code

One claude mcp add command registers the Howseen server for your user account, so it is available in every project. Then type /mcp inside Claude Code to check it is connected.

  1. Create a key. In Howseen, open Settings > "API & AI assistants" (app.howseen.ai/settings?tab=api). The key starts with hs_live_ and is shown once, so copy it right away.
  2. Run this in your terminal, with your key in place of hs_live_YOUR_KEY:
claude mcp add --scope user --transport http howseen https://app.howseen.ai/api/mcp \
  --header "Authorization: Bearer hs_live_YOUR_KEY"
  1. Check it. Start Claude Code and type /mcp. The howseen server should show as connected. We ran this exact command on October 6, 2026 and got "Connected".

Why --scope user: Anthropic's documentation says this scope stores the server in ~/.claude.json and makes it available across all your projects while keeping it private to your user account. The project scope, by contrast, is meant to be shared through version control, which is the wrong place for a key. Source: Connect Claude Code to tools via MCP.

Setup 2

Connect Codex

Codex reads the bearer token from an environment variable, so your key stays out of the Codex config file. Export the key, then run codex mcp add once.

export HOWSEEN_API_KEY=hs_live_YOUR_KEY
codex mcp add howseen --url https://app.howseen.ai/api/mcp --bearer-token-env-var HOWSEEN_API_KEY

Add the export line to your shell profile (for example ~/.zshrc or ~/.bashrc) so the key is still there in your next terminal session. To check the setup, run codex mcp list, or type /mcp inside Codex.

Prefer editing the file directly? The same server in ~/.codex/config.toml:

[mcp_servers.howseen]
url = "https://app.howseen.ai/api/mcp"
bearer_token_env_var = "HOWSEEN_API_KEY"

The --url and --bearer-token-env-var options and the url and bearer_token_env_var keys come from OpenAI's Codex documentation: Model Context Protocol (MCP) for Codex.

What to ask

7 prompts that work

You do not need to know the tool names. Ask in plain English and your agent picks the right Howseen tool on its own. Here are seven that work well.

Prompts and the Howseen tool they usually trigger
You askTool behind it
"Which buyer questions name a competitor and not us?"get_prompt_gaps
"Which sites should we get listed on first?"get_easiest_wins
"What changed since our last scan, engine by engine?"get_changes
"Who are our top competitors in AI answers right now?"get_competitors
"Show me what ChatGPT actually says when it names a rival."search_responses
"Draft the article that wins back our biggest gap."draft_article (key with actions, previewed first)
"Give me this week's review."weekly_review prompt

Agencies can also use the client_report prompt (visibility, competitors and a share link) for each client brand. The full list of 26 tools is on the Howseen MCP page.

Permissions

Read only by default, actions only after you confirm

A standard key only reads. To let your agent change something, create a key with actions enabled; even then, every change comes as a preview and happens only after you confirm it.

What each kind of key can do
KeyWhat your agent can do
Read only (default)Visibility, gaps, competitors, cited sources, real answer excerpts, articles, usage, brands
With actionsTrack or archive questions, add or remove competitors, update the action plan, draft an article, run a scan, create a client report link, publish an article and request indexing, each one previewed then confirmed

Your plan limits apply exactly as in the app, and every applied change is listed in Settings under “Actions done by your AI”.

Security

Keep your key out of your repo

Treat a Howseen key like a password. Keep it in an environment variable or your user config, never in a committed file, and revoke it in Settings the moment it leaks.

Automation

Use it in CI or scripts

For a nightly job, a CI check or a client dashboard, skip the agent and call the read-only REST API directly, with the same key and the same data.

The REST API returns JSON with date range and engine filters and pagination. Store the key as a CI secret, never in the workflow file. Endpoints and a curl example are in the REST API section of the MCP page.

Pricing

What it costs

The MCP server is included on paid plans and during the 3-day free trial (card required). Howseen costs €79 per site per month, see brand pricing.

Not ready for a trial? Get a free AI report first: no card, about 2 minutes.

Questions, answered

Can I use the Howseen MCP server with both Claude Code and Codex?+

Yes. The server is a standard remote MCP server over Streamable HTTP at https://app.howseen.ai/api/mcp. Claude Code connects with one claude mcp add command and Codex with one codex mcp add command, and you can use the same key in both.

How do I check that Claude Code is connected to Howseen?+

Type /mcp inside Claude Code. It lists your configured MCP servers and their connection status, and the howseen server should show as connected. With Codex, run codex mcp list or type /mcp in Codex.

Where does Codex store my Howseen key?+

Nowhere, if you follow this guide. The config only names the environment variable (bearer_token_env_var = "HOWSEEN_API_KEY"), and Codex reads the key from that variable. Keep the export line in your shell profile so the variable exists in every session.

Can my coding agent change my Howseen account?+

Only with a key that has actions enabled. Keys are read only by default. With actions enabled, every change (tracking questions, drafting or publishing an article, running a scan) comes as a preview first and only happens after you confirm.

What if my key leaks?+

Revoke it in Howseen Settings > "API & AI assistants" and create a new one. Howseen stores only a hash of your key, shows it once, and each key only sees the brands of the account that created it.

Are there rate limits?+

Yes: 120 requests per minute and 5,000 per day, per key. Normal use from an agent stays well under them.

Can agencies track several client brands from one terminal?+

Yes. The list_brands tool returns every brand tracked in your Howseen account, so one key covers all your clients, and the client_report prompt builds a report with a share link for each brand. You can also create a key limited to one brand.

Which plans include it?+

The MCP server and the REST API are included on paid Howseen plans and during the 3-day free trial (card required). Howseen costs 79 euros per site per month. If you only want a first look, the free AI report needs no card and takes about 2 minutes.

Ask your agent who AI recommends instead of you

Start the 3-day free trial, create your key, run one command, and ask your first question in Claude Code or Codex. The whole setup takes a couple of minutes.

From Paris with love

128 rue La Boétie, 75008 Paris, France

All Systems Online
Howseen, from Paris with love
Raphaël Raphaël Founder - Howseen AI Chat now