For shell scripts, CI pipelines, and bulk export, the Octolens CLI is often the better surface — same data, stable exit codes, and a strict
--json contract built for automation.- “Generate a share of voice graph using my BRAND, COMPETITOR 1, and COMPETITOR 2, with percentage share, mention volume, and sentiment breakdown.”
- “Show me all Reddit mentions from the last week where sentiment is negative.”
- “Add ‘next.js deployment’ as a new keyword and route buy-intent mentions to my #leads Slack channel.”
- “Summarize the feature requests from the last 7 days.”
What’s new in v2
v2 exposes the full Octolens surface — every action available in the app is available to your AI assistant. Reads: mentions, keywords, feeds, tags, keyword suggestions, workspace and company profile, usage, and global filters, plus a SQL analytics tool for aggregations and trends. Writes: create and manage keywords and feeds — including wiring up Slack, email, and webhook notification destinations.v2 is the default for everyone signing in to or signing up for Octolens. If you’re still on the v1 endpoint, see the migration note below.
Authentication
v2 uses OAuth — there’s no API key or token to paste. On first use, your MCP client opens a browser tab, you sign in to Octolens and approve the connection, and you’re ready. Your token never lives in a URL or config file. This is a change from v1, which embedded an API token in the connection URL.Connection URL
MCP is intended for interactive AI-client workflows. For scripts, backend jobs, or production integrations, use the REST API.
Setup Guides
Most popular AI tools support connecting to the remote MCP server directly. Follow our step-by-step guides: You can also generate setup snippets from inside the app under Settings → MCP, and try the server live in the Playground.Tools
v2 ships 23 tools across mentions, keywords, feeds, tags, suggestions, workspace, usage, and analytics. See the full Tools Reference for what each one does and when your assistant will reach for it. For ready-to-paste prompts and workflows, see Use Cases.Migrating from v1
The v1 MCP server is still available for existing users but is no longer the default. To move to v2:- Remove the old v1 connection (the URL containing
?token=...). - Add the new v2 URL
https://app.octolens.com/api/mcp/v2following the Setup Guides. - Complete the OAuth sign-in when prompted.
Security: mentions are untrusted content
Every mention Octolens delivers was written by an unknown third party somewhere on the internet. When your AI assistant reads mentions through this MCP server, that content is data, not instructions — a post could contain text deliberately crafted to steer an AI agent (“prompt injection”). Octolens scores mentions for relevance and sentiment, but does not remove or neutralize adversarial text. Practical guidance:- Be deliberate about combining Octolens with write-capable tools (email, code, payments, file access) in the same agent session. Prefer read-only sessions when browsing mentions.
- If your agent acts on mentions automatically, gate consequential actions behind a confirmation step.
- Tell your agent explicitly that mention text is quoted third-party content and never a source of instructions.
