The OneLence MCP server is how AI apps read and act on a OneLence workspace. Point any MCP client at https://mcp.onelence.com, sign in to OneLence, and it can answer questions about your website journeys and conversions, ad platforms, search, AI visibility and affiliate partners with your own data.
The 15 MCP servers marketers recommend most, from HubSpot to Stripe, are compared in MCP servers for marketing.
Connect a client
| Client | How to connect | Guide |
|---|---|---|
| Claude (web, desktop, mobile) | Customize → Connectors → + Add → Add custom connector | Claude |
| ChatGPT | Developer mode, then create an app with OAuth | ChatGPT |
| Claude Code | claude mcp add --transport http onelence https://mcp.onelence.com | Coding agents |
| Cursor | Add a remote (Streamable HTTP) server | Coding agents |
| Codex | The OneLence plugin in the onelence-ai-plugins repository | Coding agents |
| Other clients | A remote server with the URL, or the npx -y onelence mcp bridge | Coding agents |
Connection details
- URL:
https://mcp.onelence.com, over Streamable HTTP. - Sign-in: OAuth 2.1 with PKCE. Clients discover it from the server's 401 response and register themselves, through dynamic client registration or a client ID metadata document, so there is no client ID or secret to configure.
- Without a browser: a personal access token (
olpat_…) from Settings → Developer, sent asAuthorization: Bearer. - Access: the user picks one workspace and approves the permissions on the consent screen. Access tokens last one hour; refresh tokens last 60 days and are replaced each time they are used.
Permissions
| Scope | What it allows |
|---|---|
account:read | Sites, plan and business context |
analytics:read | Traffic, conversions, affiliates, AI visibility and SEO |
decisions:read | The briefing, recommendations, what changed and what evidence is missing |
tracking:read | Install instructions and tracking checks |
workspace:write | Record changes, give feedback on a recommendation, update business and campaign context, each confirmed by the user |
tracking:write | Register a site and define conversion events, each confirmed by the user |
billing:subscribe | Show plans and return a link to OneLence's checkout, without charging anything |
offline_access | Stay connected without signing in again |
Tools
The server has 35 tools. 27 only read:
- Priorities and recommendations:
onelence_get_briefing,onelence_list_decisions,onelence_get_decision,onelence_list_sources,onelence_compare_sources - Performance:
onelence_get_performance,onelence_get_breakdown,onelence_get_funnel,onelence_get_live,onelence_list_conversions,onelence_list_events - Affiliates, AI visibility and SEO:
onelence_list_affiliates,onelence_find_affiliate_partners,onelence_get_ai_visibility,onelence_get_bot_traffic,onelence_list_seo_opportunities - What changed and what is missing:
onelence_list_signals,onelence_get_signal,onelence_list_evidence_gaps,onelence_list_changes - Business context:
onelence_get_business_context,onelence_list_campaign_contexts - Account, tracking and billing:
onelence_get_account,onelence_get_setup,onelence_verify_tracking,onelence_get_plans,onelence_create_checkout_link
8 change something inside OneLence, and each first returns a summary and a confirmation id. Nothing is saved until the user agrees:
onelence_record_change,onelence_give_decision_feedback,onelence_update_business_context,onelence_save_campaign_contextonelence_save_event_definition,onelence_update_event_definition,onelence_delete_event_definition,onelence_register_site
onelence_get_ai_visibility, onelence_get_bot_traffic and onelence_list_seo_opportunities need the Premium or Scale plan. onelence_list_seo_opportunities also needs Google Search Console connected.
Interactive views
In apps that support MCP Apps, including Claude and ChatGPT, four tools render as interactive cards: the briefing, the list of recommendations, the recommendation for one source, and the performance overview. Each card is a self-contained page with no network access that only lays out what the tool returned. Other apps show the same result as text.
How the server behaves
- Short answers by default, with the ids needed for the next call.
response_format: "detailed"returns every field. - No billing actions from chat. Nothing is charged, changed or cancelled; subscriptions are managed in OneLence.
- No secrets. Secret API keys are never returned.
- Minimal logging. Tool calls are logged without their content, and tokens are stored only as hashes.
- Instant revocation. Disconnecting an app in Settings → Developer takes effect immediately.
REST API and command line
For scripts and backends, the REST API at https://api.onelence.com/v1 covers the same data and is described at https://api.onelence.com/v1/openapi.json. The onelence command line (npx onelence) wraps it for terminals and CI.
Frequently asked questions
What is the OneLence MCP server URL?
https://mcp.onelence.com. It uses Streamable HTTP and OAuth sign-in, so most clients only need the URL.
Which AI apps can connect?
There are setup guides for Claude (web, desktop and mobile), ChatGPT, Claude Code, Cursor and Codex. Any client that supports remote MCP servers over Streamable HTTP can connect, and clients without that support can use the OneLence command line as a local bridge.
Do I need an API key?
No. Clients sign in with OAuth and register themselves. For scripts and CI without a browser, use a personal access token from Settings, then Developer, as a Bearer token.
Is there a REST API as well?
Yes. The REST API at https://api.onelence.com/v1 covers the same data for scripts and backends, and its OpenAPI description is at https://api.onelence.com/v1/openapi.json.
