# Socialprofiler MCP agent playbook Use public social profiles to find the right person and prepare useful insights. Use only facts the user supplied or the tools returned. Never invent profile links, handles, phone numbers, locations, account IDs or consent. ## Connect Remote HTTP connector: https://mcp.socialprofiler.com/mcp Connection page: https://mcp.socialprofiler.com/#connect Guide: https://dashboard.socialprofiler.com/docs/guides/mcp/ Create an account: https://dashboard.socialprofiler.com/login?state=signUp&source=mcp - Claude or Claude Desktop: open Plugins in the sidebar → Add → Add custom connector; paste the URL, add it, press Connect and sign in to Socialprofiler. If your menu still shows Customize, open **Customize → Connectors** and use the same Add menu. In a chat, press + → Connectors to enable it. For Team and Enterprise, an Owner first adds it in Organization settings → Connectors → Add → Custom → Web; members then find it in Plugins and press Connect. - ChatGPT on the web: custom MCP server access depends on your account and workspace settings. Open chatgpt.com/plugins → + → Add custom MCP server; enter a name and the URL, then choose OAuth. Review the warning, select I understand and want to continue → Create as a plugin, then sign in to Socialprofiler. Install the resulting plugin. In a new chat, type @ and choose the plugin. - Claude Code: run `claude mcp add --transport http socialprofiler https://mcp.socialprofiler.com/mcp`; then `/mcp`, select the server and choose Authenticate. Discover tools and read their current schemas and descriptions. Call `whoami` to check identity, subscription and `auto_purchase`. Over stdio only identity and search are available; use the hosted OAuth connector for reports and scenarios. ## Download the Go CLI The `sp` CLI calls the hosted MCP server once per invocation. Download the version for your OS and architecture from https://mcp.socialprofiler.com/#cli; no Go installation or repository checkout is required. Extract the macOS/Linux archive to get executable `sp`, or save the Windows executable as `sp.exe`. The download section also provides SHA-256 checksums. macOS binaries are unsigned and not notarized; Windows binaries are not Authenticode signed. The CLI defaults to `https://mcp.socialprofiler.com/mcp`. On macOS/Linux, run `./sp login` to open the existing Socialprofiler consent page in your browser and authorize scope `search`. Login uses loopback PKCE and saves a private credential bound to that endpoint. The CLI refreshes it before a command when expiring. Start with the account check (no search quota or report credit): ```sh ./sp login ./sp whoami --json ``` Windows uses the same browser OAuth flow. In PowerShell, in the download directory: ```powershell .\sp.exe login .\sp.exe whoami --json ``` `./sp.exe` also works in PowerShell. Saved Windows credentials are protected for the current user with DPAPI under `%LOCALAPPDATA%`; see `cli/README.md` for storage details. For automation, securely supply the `SP_MCP_ACCESS_TOKEN` override in the environment with an already authorized MCP OAuth access token for the exact endpoint and scope `search`. Refresh externally supplied tokens through their OAuth runtime when they expire. Never paste tokens into prompts, arguments, history or logs. Platform JWTs, passwords and service keys do not work. Other available commands: ```sh ./sp parse 'Jane, designer in Paris' ./sp lookup known_handle ./sp search --name Jane --location Paris ./sp search --report-id REPORT_ID --location '' --work designer ./sp search status REPORT_ID --json ``` Parse is free preflight; lookup requires a known handle and does not establish identity. A search without `--report-id` spends new-search quota; refinement keeps that ID and sends only changes (an empty string clears a field). Status calls `report_status` without a purchase or report read. There are no purchase, batch or arbitrary-tool commands. After an unknown search outcome, do not retry a new search: use `search_history` in your authorized MCP runtime to recover the report first. Run `./sp --help` for flags and JSON input. Exit codes and maintainer verification are documented in `cli/README.md` in the source repository. ## Hosted workflow prompts and quick start Discover the hosted prompts `prepare_meeting`, `write_first_message` and `enrich_crm_record`. Each accepts optional `contact` and `context`; CRM `format` defaults to `markdown` and completion offers `markdown` or `json`. These templates guide the existing tools; retrieving one spends no quota or credit and does not authorize purchase, send a message or write a CRM record. Read the static `text/markdown` resource `socialprofiler://guides/getting-started` for the same workflows and their identity, quota and consent boundaries. Client menus and rendering vary; use only capabilities actually discovered. These prompts and the resource are hosted-only, not part of the Go CLI or stdio tools. ## Find and refine 1. Use `parse_query(text)` as the free preflight for a natural-language request: it runs no search and spends no search quota. If `ready` is false, ask the missing question. There is no separate preflight tool. 2. Call `search_people` with supported fields: `name`, `username` (handle or profile link, including a returned LinkedIn link), `phone`, `location`, `work`, or `text` for an unsplit line. Keep facts in their own fields once; do not infer extra values. A new search needs at least a name, username or phone; ask for missing identity before spending quota. Consult the discovered schema for other optional fields. 3. Show results, then ask the returned clarification when needed. Refine with `search_people(report_id=..., ...)` using the SAME `report_id` and only changed fields, or `answer={"kind": ..., "value": ...}` from the actual question and user's reply. An empty string clears a field. Never invent an answer. 4. During an active search or identification workflow, before replying, use `pick_account(report_id, network, account_id)` when the first card is confirmed or strong with `top_clear` and the given facts identify the person. Respect a browse-only request. A strong badge alone is insufficient; ambiguous or multi-card phone results need the user's choice. After a pick, check every network and pick another clearly matching account if appropriate. Use `other_accounts` for a card's linked accounts and `get_search(report_id)` to reopen current results. Reopening alone requests no account changes; choose/identify only when the user explicitly asks. Respect their schemas. A new `search_people` without `report_id` spends ONE search; refinement rounds are free but capped by `rounds_left`. Stop on `subscription_required` or `search_limit_reached`, explaining the returned plan or limit information. For rate limits or transient failures (`budget_exceeded`, `try_again_later`), follow returned retry instructions rather than immediately looping. Phone lookup results remain masked until purchase. LinkedIn helps identify the person; it is not a source of report activity or insights. On `outcome_unknown` or a creation timeout, do not repeat the new search: call `search_history(limit=10)` (allowed 1–50, default 10), inspect recent searches, and use `get_search` on the matching existing report. If an error supplies a `report_id`, recover or refine that report. If recovery is ambiguous, clarify with the user before risking duplicate search quota. ## Purchase and read Search quota and report credits are separate. `buy_report` proposes or buys the selected basket. With `whoami.auto_purchase` true it can buy selected accounts and valid automatic picks from the current search immediately. A requested account outside that eligible basket needs a fresh affirmative answer through the supported consent flow. `exclude` wins even over explicit `accounts`. Never fabricate consent or treat general research intent as a purchase answer. Without eligible automatic purchase, use the returned chat, widget or site consent flow and wait for the user's actual decision. `confirm_purchase` is widget-only; the model must not call it or manufacture a `consent_id`. A quote or status is not proof of purchase. Honor `auto_purchase_off` and refusals. Call `report_status(report_id)` before `get_report` or `get_summary`: the first report read after confirmation can charge the report credit. Status checks are charge-free. Follow `retry_after_s` while building; read when `readable`. If nothing could be built (`unbuildable`), explain the returned outcome and do not poll forever. For scenarios, use only tools actually discovered: chat mode and client mode expose different capabilities; follow their tool descriptions. Reply in the user's language with concise findings and useful returned links. Keep raw JSON and internal IDs out of normal replies. When the results widget is shown, avoid repeating its cards in prose. ## Choose a message channel For a later generic send/contact request ("отправь ему сообщение", "как лучше связаться"), including a short "отправь" or "send it" after a draft, call `suggest_message_channels(report_id)` and let the user choose from selected social accounts. It reads charge-free state only; no report reads, lookup, purchase or sending. If no picks exist (for example, a classic report), use verified accounts already in the conversation and ask the user. When X is selected and `x_dm_available` is true, offer the built-in review flow where the user connects their X account. Offer to find and help connect an app, connector or plugin that supports sending on a verified channel, even when none is already listed, alongside the built-in X option when available. In ChatGPT, Claude and other MCP clients, always offer this help even without management tools. If the user accepts, use the current client's native discovery and connection capabilities. If native discovery is absent, consult its official public directory/docs through available lookup. For steps the client cannot perform, guide the user through known official catalog/settings without inventing integrations. Verify the provider supports sending on that channel, beyond reading or drafting. Suggest native install/connect for user approval, let the user authenticate and consent through the client, and confirm the connection before relying on it. Send no message or profile data to prospective integrations during discovery. If the user declines or no compatible integration exists, preserve the draft and offer copying it and opening the verified profile. Never silently install, connect or send, or assume permissions. An explicit "отправь через х" (Cyrillic х), "скинь ему в личку в Твиттере" or "send via X" with a prepared message/report routes to `create_x_dm_draft` when advertised, then its authenticated site review_url. Use the exact active grant, owned paid report and per-draft site approval/attempt; no separate legacy X permission toggle authorizes sending. Whenever an X account was selected or requested, supply its verified exact numeric ID as `target_account_id`. With multiple X choices, state that not every selected account is a built-in recipient: only the report principal is supported. Never silently substitute. Show the matching handle from the preview when present; keep raw numeric IDs out of normal replies. When connection_required omits identities, give review_url immediately to connect; the site confirms verified sender, recipient and exact text before approval. Never execute without the exact site-approved revision. A mismatch or missing target guard requires resolving the recipient, not retrying another target. Keep prior recipient consent and exact revision checks; host/chat approval is insufficient. If unavailable, explain it and preserve the draft. Never use browser automation for Socialprofiler send flows or automatically switch transports. Honor a chosen external connector with its host approval, authentication and connection checks. Draft-only requests never authorize dispatch.