Connect an agent over MCP
Add LopeBase to Claude, Cursor, or any MCP client at one address. Sign in, pick a workspace, and let the agent read and run nearly everything.
LopeBase runs an MCP server at app.lopebase.com/api/mcp. Point Claude, Cursor, or any other MCP client at it and the agent can see how your properties are doing, read your search and analytics data, set up and fix connections, and run nearly everything you can in the app, all while it works in your code.
Connect an agent
Most agents, including Claude.ai, Claude Code, and Cursor, can sign in to a remote MCP server on their own. Add the address and they open a LopeBase page to approve it.
Using Claude? LopeBase is listed in Claude's connector directory. Find it there and connect in a couple of clicks, no address to copy.
-
Add the address
For Claude Code, run this in a terminal:
claude mcp add --transport http lopebase https://app.lopebase.com/api/mcpFor Claude.ai, Cursor, or another client with a remote MCP setting, add this as an HTTP server:
https://app.lopebase.com/api/mcp -
Approve the sign-in
The agent opens a page in your browser that asks whether to allow it, names the workspace it will work in, and lists what it will be able to do. Sign in if you are not already, and press Allow. Only a workspace admin can approve. If you belong to more than one workspace, LopeBase asks which one before it opens the approval; if you were partway through creating an account, it picks up this step once you finish.
-
Start working
The agent now has its own token for this workspace, good for 30 days. Ask it something like "what needs attention across my properties" to try it.
Already run npx lopebase in a property's folder? For Claude Code, Codex, and Gemini CLI it adds the MCP server and signs it in for you, no separate setup needed; for opencode and Cursor Agent it prints the command to add yourself. See Set up from your terminal.
For agents that only take a token
Some agents cannot open a browser to sign in. For those, create an agent token instead.
-
Open Agents, Access
AgentsAccess Open Agents, Access -
Name it, set how long it lasts, and what it can do
Give it a label like "Claude Code", an expiry of 1, 7, 30, or 90 days, and the scopes it needs (see below). Press Create agent access.
-
Copy the command or the token
LopeBase shows a ready-to-run command for Claude Code, and the raw token for anything else: add it as an HTTP MCP server with the header
Authorization: Bearer <token>. The token is shown once; copy it before you close the dialog.
Every call acts as the admin who created the token, and LopeBase checks again each time that they are still an admin of the workspace. If that person loses admin rights, the token stops working. Revoke a token from the same screen at any time; LopeBase asks you to confirm, since any agent using it loses access right away. Tokens sit on the Access tab of the Agents page, next to the setup guide for the CLI, the MCP server, and the adapter.
What a token can do
A token carries one or more scopes, and only sees the tools its scopes allow.
| Scope | Lets the agent |
|---|---|
| Setup | Add properties, connect sources and the adapter, run onboarding, write and submit content drafts. |
| Read | Read health, metrics, the weekly summary, search and analytics data, and how uptime checks, status pages, pipelines, and discussions are set up. Never changes anything. |
| Manage | Change things for you, the way you would in the app: properties and their connections, uptime checks, status pages, pipelines, discussions, articles, email campaigns and changelog sources, SEO, AI visibility, dashboards, alerts, the weekly summary, and notifications. Grant it only if you want the agent to make these changes. |
| Data | Read and change the records in your own product through its LopeBase Adapter, like users or orders, and run its actions. These can hold your customers' personal data, so grant it only to an agent you trust with that. |
list_properties works on any scope, since knowing what exists is harmless on its own.
What an agent can do
Setup tools act for you: adding a property, connecting a source, or handing you a step only you can do. Some also work with the read scope, as noted.
| Tool | What it does |
|---|---|
| list_properties, get_property | List your properties and what each has connected. |
| add_property | Add a property by name and site address. |
| connect_source | Connect an SEO, analytics, revenue, or uptime source to a property, tested live before it is saved. |
| connect_adapter | Connect the property's own LopeBase Adapter once it has been added. |
| detect_stack, get_onboarding_status | Work out what a project uses, and what to set up next for it. |
| get_setup_guide | The full setup guide for one property, including which services deserve an uptime check. |
| get_pageview_snippet, get_pageviews | Turn on LopeBase's own cookieless pageview counter, add conversion calls, and read pageviews, sources, and which sources, campaigns, and landing pages bring conversions. |
| get_content_profile, next_article_topic, submit_draft | Write an article in a property's voice and send it through the same checks and review as LopeBase's own drafts. |
| list_notes, get_note, add_note, update_note, resolve_note, delete_note, check_note | Read and leave agent notes per property: what the next session needs, work still to do, and follow-ups LopeBase checks against Search Console on their due date. They show under RunNotes. |
| request_human_action, list_human_actions, resolve_human_action | Hand you a step it cannot do itself, like a sign-in or a payment, and track it until it is done. Open steps show under AgentsAccess. |
| list_connection_options, choose_connection_site | After you finish Connect with Google, Cloudflare, or Bing, list the sites the account can see and pick the one for the property, so setup does not wait on you. Choosing also works with manage. |
| diagnose_connection, test_adapter | Find out why a connection or the adapter is failing, with the likely cause and the next step. Also works with read. |
| get_job, list_jobs | Follow a longer task an agent started, like an audit or an article, until it finishes. Any scope. |
| send_feedback, request_connector | Send the LopeBase team feedback, or ask for a connector, when you ask it to. Also works with manage. |
| disconnect_source | Remove a property's connection to a source. Needs the manage scope. |
Read tools never return a stored key or your customers' personal data.
| Tool | What it does |
|---|---|
| get_health | What needs attention right now across every property: failing checks and connections whose data stopped arriving (each with a likely cause and next step when the cause is clear, and a link to the page that fixes it), sites down right now with the kind of outage, missing connections, open handoffs, and the alerts sent in the last 7 days with how often each check was raised and fixed, and which keep bouncing. Each property comes with a link to its page in LopeBase. |
| list_metrics, query_metric | The same numbers your dashboards show, like MRR, pageviews, and signups, for one connection at a time. |
| get_digest | This week's numbers against last week, workspace-wide: the same ones the weekly summary email sends, with links to Overview and to the email's settings. |
| get_ai_visibility | The latest AI visibility check for a property: how ChatGPT, Claude, and Gemini answer its buyer questions, the shares that mention and recommend it with their change since the check before, the brands named instead, the sites cited with their status, the share link, and the questions where it is missing. Never runs a new check. |
| list_sources, read_source | Search Console, Bing, GA4, Plausible, PostHog, and Cloudflare Web Analytics data: queries, pages, traffic sources, and funnels, as totals, never visitor or customer records. |
| get_seo | What the SEO page keeps: tracked searches and their positions, the property's Domain Rating with six months of weekly history and its recent change, competitors, the latest audit and review, and link ideas. |
| list_articles, get_article, list_topics, estimate_article | Your articles and topic ideas, and what writing one would cost in credits. |
| get_ai_visibility_settings, get_ai_report, list_growth_steps | The questions and schedule for AI visibility, the latest AI report of each kind, and the growth steps you follow. |
| list_dashboards, list_notifications, get_alert_settings, get_digest_settings | Your dashboards, built-in (Key numbers, Subscriptions, Content & SEO, and Traffic) and custom, each with its link; your notifications, the same list as the bell, from failing checks, data that stopped arriving or needs reconnecting, and pipeline runs or articles waiting for review to adapter updates and new discussion threads, each with a link to the page that handles it; and how your alerts and weekly summary are set up. |
| list_audit_events | What changed in the workspace and who changed it, people and agents alike. For a record in your own product it gives only which fields changed, not their values. |
| list_campaigns, get_campaign, estimate_campaign | Your email campaigns, one in full with a link to its page, how it sends, whether Autopilot approved it, and once sent its stats and the site visits and signups it brought, and what an AI draft or rewrite would cost in credits. |
| list_changelog | What a property shipped, read from its changelog sources, with which entries already went out in an email. It can also look for feeds on the property's site without adding them. |
| refresh_numbers | Fetch a property's numbers again now, like the Refresh button. Free. |
Manage tools change things the same way you would in the app, as the admin who created the token, and each change shows in the audit log. They need the manage scope.
| Tool | What it does |
|---|---|
| get_uptime_settings, set_uptime_settings | See and change how each uptime check runs: how often, how many failed checks before it counts as down and before it alerts, and its slow limit. Reading needs only the read scope. |
| get_status_page, set_status_page | See a property's status page, turn it on or off, and change its title, look, and components. Reading needs only the read scope. |
| post_status_note, update_status_note, delete_status_note | Post, edit, or remove a note on the public status page, like an incident and then its fix. A new note is public right away and tells your team, as it does in the app. |
| list_pipelines, list_pipeline_runs | See your pipelines, their schedules, and their runs, including any waiting for review or stuck. Each run comes with a link to its page. These need only the read scope. |
| run_pipeline, review_pipeline_run, retry_pipeline_run, cancel_pipeline_run | Start a run, approve or reject one waiting for review, or retry or stop a stuck one. A step that uses AI spends credits, as it does in the app. |
| save_pipeline, delete_pipeline | Build or change a pipeline from steps, or delete one you built. Templates cannot be changed or deleted. |
| save_pipeline_schedule, set_pipeline_schedule_enabled, delete_pipeline_schedule | Set a pipeline to run on its own for a property, pause or resume it, or remove it. |
| get_discussions, get_pain_points | The discussions found for a property and the pain points summed up from them. These need only the read scope. |
| set_discussion_status, set_discussion_topics, set_discussions_weekly | Mark a thread, change the topics searched for, or turn the weekly search on or off. |
| find_discussions, summarize_pain_points | Search for new threads now, or sum up their pain points. Both spend credits, as they do in the app. |
| add_pain_point_topic | Turn a pain point into an article topic. |
| update_property, remove_property | Rename a property you added, or delete it with everything it owns. Deleting needs the agent to repeat the property's name or id as a confirm. |
| move_connection, accept_connection_site | Move a connection to the property it belongs to, or keep it where it is when its account names a different site. |
| save_content_profile, finish_content_setup, test_content_destination | Set up articles for a property: voice, byline, keywords, schedule, review or autopilot mode, and where articles publish. |
| open_github_setup_pr | For a GitHub destination, open one pull request that adds the blog check workflow, and the merge workflow when your branch still needs it. You review and merge it; LopeBase never does. |
| write_article, improve_article, update_article, approve_article, reject_article, reschedule_article, update_live_article | Write, fix, edit, approve, and schedule articles. Writing and improving spend credits. Approving and updating a live article change your public site. |
| write_campaign, save_campaign, count_campaign_audience, send_campaign_test, cancel_campaign, delete_campaign | Write an email campaign with AI from the changelog (spends credits) or by hand, choose how it sends (all at once, each person's time zone, or waves), count who it goes to and run its checks, send a test to people on your team, cancel it, or delete a draft. |
| approve_campaign | Approve a campaign and send or schedule it, following how it sends. Approving one email of a scheduled Product update email moves its run on, which sends it. Refused unless you turned on Let agents approve sends in the property's Email settings; otherwise the agent is told to ask you to approve it on the campaign page. |
| get_brand, preview_email, get_email_settings | Read a property's brand and email settings, and see an email or the brand's sample exactly as LopeBase draws it: the template, what the header shows and why, the colors, and the text. These need only the read scope. |
| set_brand, read_brand_from_site, draft_brand | Set a property's brand, read its look from the site (free, with what loaded and why each image was or was not used), or set it up with AI (spends credits). |
| set_email_settings, hide_changelog_entry, unschedule_campaign | Change who emails come from and the postal address, keep a changelog entry out of emails, or move a scheduled campaign back to a draft. How sends are approved stays with you. |
| set_changelog_source, refresh_changelog | Add or remove where a property's changelog is read from, and read it again now. |
| refresh_topics, plan_topic, dismiss_topic, suggest_content_voice, suggest_content_keywords | Find and plan topics, and draft a voice and keywords. |
| track_keywords, track_competitors, mark_search, set_seo_review_step, mark_link_idea | Follow searches and competitors, and work through review steps and link ideas. |
| set_seo_settings | Turn web search for SEO research on or off. Off makes finding competitors and link ideas cheaper. |
| run_seo_audit, run_seo_review, find_competitors, suggest_seo_keywords, tidy_keywords, find_link_ideas | Run the SEO audit, the AI review, and the AI suggestions. The AI ones spend credits. |
| refresh_seo_reading, import_blog | Take the weekly SEO readings now, and import the property's blog. |
| create_seo_share_link, regenerate_seo_share_link, revoke_seo_share_link | Turn the public link to an SEO report on, swap it, or turn it off. |
| set_ai_questions, suggest_ai_questions, set_ai_aliases, run_ai_visibility, set_ai_visibility_schedule, add_ai_gap_topic, mark_ai_cited_site | Choose the buyer questions and the other names that count as the property, run an AI visibility check or schedule one, turn its web search on or off, turn a gap into an article idea, and mark a site the answers cite listed or dismissed. Checks spend credits. |
| create_ai_visibility_share_link, revoke_ai_visibility_share_link, regenerate_ai_visibility_share_link | Turn on, turn off, or replace the public read-only AI visibility report link. |
| run_ai_report, track_growth_step, untrack_growth_step | Run an AI report, like the weekly briefing, and follow a growth step. |
| save_dashboard, delete_dashboard | Build, change, or remove a custom dashboard. |
| set_alert_settings, send_test_alert, set_digest_settings, send_digest_preview, set_notification_status | Your alerts, your weekly summary, and your notifications. These belong to the person who created the token. |
Tools that take a while, like an audit or a new article, return a job id right away, and the agent follows it with get_job.
Data tools
Data tools work on the records in your own product through its adapter, with the same permissions and audit log as its screens in LopeBase. They need the data scope.
| Tool | What it does |
|---|---|
| list_resources | What each adapter and connected service exposes: its resources, their fields and which can be edited, and its actions. |
| query_resource, get_resource_row | Search, filter, and page through records, or read one. |
| update_resource_row | Change the fields your adapter lets people edit. |
| run_resource_action | Run one of the adapter's actions, like resending an email or a refund. An action that deletes or moves money needs the agent to confirm it. |
| list_resource_views, save_resource_view, delete_resource_view | Saved searches on a resource, shared with the workspace. |
What stays with you
Some things no token can do, whatever its scopes: billing and credit purchases, inviting or removing team members and changing their roles, creating or revoking agent access, and deleting or restoring the workspace. When an agent needs one of these, it asks you.
LopeBase never posts on Reddit or a forum for you, and no tool lets an agent do that.
Older names from before tools said property (list_products, add_product, get_product, and product_id) still work, so saved prompts keep running.
Every tool, with its inputs and the scope it needs, is listed at app.lopebase.com/.well-known/mcp/server-card.json. Anyone can read that list without signing in; the tools themselves still need a token.
An example setup
For an MCP client that takes raw JSON configuration (used by some clients instead of a sign-in flow):
{
"mcpServers": {
"lopebase": {
"url": "https://app.lopebase.com/api/mcp",
"headers": { "Authorization": "Bearer lb_agent_..." }
}
}
}
Replace the token with one under Agents, Access. Clients that support the OAuth sign-in flow do not need this; adding the bare URL is enough.
Where to go next
- Set up from your terminal wires up the MCP server, the CLI, and the adapter in one step.
- AI reviews and credits covers what an agent's content tools cost.
- Fix a connection that needs reconnecting if a source an agent connected stops working.
- See what an agent can read from PostHog, Plausible, and Search Console, with workflows to try.
If something goes wrong
Something else? Contact us.
My agent can't find the approval page
Some terminals cannot open a browser automatically. Copy the link your agent prints and open it yourself, or run npx lopebase mcp, which forwards to the same server using your saved sign-in.
The agent says the token needs a scope it does not have
Create a new agent token with the scope the tool needs, from AgentsAccess, and point the agent at that one instead.
The agent says it is not signed in to LopeBase
It reached the server without a token. Remove LopeBase from the agent and add it again so it opens the approval page, or give it a token from AgentsAccess as described in For agents that only take a token.
A tool call fails with "Invalid or expired agent token"
The token was revoked, passed its expiry, or the admin who created it is no longer an admin of the workspace. Issue a new one under Agents, Access.
I approved the wrong workspace
Revoke that token under Agents, Access, then reconnect the agent and pick the right workspace when it asks.
Can my agent see stored connection keys?
No. No MCP tool returns a stored secret, including the ones that connect a new source. The agent sends the value in; it never reads one back out.