mcp-server

v0.3.0
@praisedco/mcp-server Checked 2 days ago Published 2 days ago

MCP server for Praised — ask any MCP client (Claude Code, Claude Desktop, Cursor) about your AI-visibility measurements: mention rate, share of voice…

An MCP server that puts your AI-visibility measurements — and the facts your pages are allowed to state — inside Claude (Code / Desktop), Cursor, or any other MCP client. Ask *"what's our share-of-voice trend, and is the latest change real or noise?"* and the assistant answers from your live Praised data — then works the fix queue with you. Read the measurements. Your questions are asked on their own schedule, and every day has a reading of the window ending that day. Each reading tool reads the newest final 7-day window unless you name one: as_of (its last day) and days (7 or 30).

Summary extracted from the README.

@praisedco/mcp-server

An MCP server that puts your AI-visibility measurements — and the facts your pages are allowed to state — inside Claude (Code / Desktop), Cursor, or any other MCP client.

Ask "what's our share-of-voice trend, and is the latest change real or noise?" and the assistant answers from your live Praised data — then works the fix queue with you.

Write wherever you already write; ground and grade it here. Ask for a writing pack and your assistant gets the question you are losing, the facts a human has approved, and the section skeleton a citable page uses. Ask it to check the draft and a figure no approved fact carries is refused — the one reading a chat window cannot give you.

claude mcp add praised --env PRAISED_TOKEN=<your personal API key> -- npx -y @praisedco/mcp-server

Tools

Read the measurements. Your questions are asked on their own schedule, and every day has a reading of the window ending that day. Each reading tool reads the newest final 7-day window unless you name one: as_of (its last day) and days (7 or 30).

Tool What it answers
list_projects Which brands/products are tracked
get_project(slug) Project status, question counts, when tracking began, the newest final reading
get_coverage(project) Each question on each engine: when it was last answered, missed slots, pauses
get_reading(project, as_of?, days?) Mention rate, share of voice, recommendation rate — each with its interval and count, the window's envelope (coverage with its denominators, freshness, why anything is missing), notes, and the change calls
list_views(project) / query_view(project, view, …) Any figure the measurement holds, by view: rows, totals, estimates with their bounds, the population's envelope, and notes on what an estimate does not show
get_evidence(project, ref) Open one answer, citation, figure or question by its evidence id
get_citations(project, as_of?, days?) Which domains the engines cite (owned / competitor / independent)
get_benchmark(project, as_of?, days?) Your rank and share among every brand named, the leader, the median
get_competitive_field(project, as_of?, days?) Every brand named: rank, share + interval, sentiment + interval, and whether it can be placed
get_perception(project, as_of?, days?) How each brand is described: sentiment split, net sentiment, endorsements, name coherence
get_hallucinations(project, as_of?, days?) Engine claims that contradict your facts
get_trends(project, metric?, days?, since?, until?) The headline figures day by day, the changes that cleared the margin, and what happened around them
get_experiments(project) Measured lift from content changes, window before against window after

Follow the work and whether it worked:

Tool What it does
list_work(product, state?, target?) The work on a product: each item's state, what checks it, the change the check can confirm, and its verdict once settled
get_work_item(product, ids) Items by id, read back after filing or shipping
get_handoff(product, id) The brief for a coding agent on one item: the task, where, what checks the change, and how to report it shipped
file_work(product, title, lane?, ...) File a finding as work, with what will check the work declared first. Work found outside Praised names its lane: a site fix, an owned page or an earned placement. Rated only from what Praised measures; with nothing measured, no rating. Writes one work item
move_work(product, id, action, on?, reason?) Start work, mark it shipped on the day the change went live, or cancel it with a reason. Writes the item's state
save_draft(product, id, title, markdown) Attach a draft to one item, for its owner to review and file. Writes one draft document
get_verdicts(product, targets) Per finding, the newest verdict and any work still open
get_programme(products?, from?, to?) What shipped, what moved, what did not, and what waits for its check
get_next_moves(product, top?, goal?) What to do next: the product's draft work in the order Praised ranks it, the top 5 unless you ask for more (at most 20), with the total; goal ranks for one setup goal
get_work_knowledge(products?) What kind of work has raised visibility here: per work type, Verified verdicts out of those settled, and how well the ratings before the work matched what the check found
get_site_audit(product, audit_id?) The latest site audit as stored, or one page's audit and history
get_access(product) The last kept AI-crawler access check, and when it ran
get_fix(url) Paste-ready JSON-LD / FAQ / intro for one page
check_access_now(domain) Whether AI crawlers can reach a site right now: one live check per site every 10 minutes

get_fix and check_access_now keep nothing: no audit lands in History and no access record is saved, and neither answer can be cited later. Three tools write work, and only work: file_work, move_work and save_draft, with a token that carries the work scope. A shipped page fix is re-checked at once; a fix judged by a later reading settles once the window after its ship day is final, and the verdict reads back on the item. Only the check sets a verdict, and nothing a token holds writes a figure.

Write the page — wherever you write:

Tool What it does
get_writing_pack(product, format?) Everything for one page in one call: the approved facts, the format's section skeleton, the current content gaps, and the rubric it will be graded on
get_brief(product) The approved facts a page may state, kept separate from the unreviewed ones it may not
list_formats() Each format's section contract: what a section is for, what evidence it needs, what it says when that evidence is missing
check_draft(markdown, product?) The same grading the console runs, including the fact gate
get_piece_brief(artifact_id, version?) One piece's brief as saved in the canvas: the questions it is written for, its section plan, the grade kept for that version, and the finding key its live page reports to
get_grade(product, questions, url? or markdown?, days?, job_id?) A page or a draft against the pages AI engines cite for its questions: what they have that it lacks, as counts. Association with being cited, never cause. Keeps nothing, spends no credits, 12 grades an hour

This is the point of the server, not a bolt-on. You already write in an editor you like. What you cannot get there is the question you are actually losing, the facts a human approved, and a verdict that refuses a figure nobody approved: check_draft blocks on a number no fact carries, and warns separately on one only an unreviewed fact carries. Deterministic, with no model call and no credits: safe to run on every draft.

Everything runs under your own token, and the server org-scopes every call to exactly what you can already read and do. The server exposes no generic request method: a prompt-injected instruction can't turn the server into an arbitrary API proxy.

ChatGPT's deep research and company knowledge call two tools by these names, and read their answers as structuredContent beside the same JSON as text:

Tool What it does
search(query) Your workspace's records by text: each project's newest reading, the work on each product, and each product's audited pages. At most 20, best match first, each an id for fetch
fetch(id) One record in sentences, its whole record in metadata. A reading states each headline figure with its 95% interval and the answers behind it, why a figure is withheld (never a zero), its notes, and any refusal to compare

Both read only, through the same reads and the same token as every tool above.

Setup

You need a Praised workspace on a paid plan and a personal API key: your own credential for your own AI tools.

  1. Sign in at app.praised.co.
  2. Settings → Personal API keys → Create key. Name the key after the tool, pick what the key may do, and copy the key now: Praised shows it once.
  3. Add the server to your client with that key.

A token does one of two things, chosen when you make it:

  • Read — every figure you can read, with its interval, its denominator and why a figure is missing, except the Owner-only settings and audit log.
  • Read and file work — the same, plus filing and moving work items. Only an Owner or an Editor can make one.

Nothing a token holds can change a figure. Every Praised service refuses a figure write from a token, whatever an assistant is told to do. A token expires after 30, 90 or 365 days, and revoking a token in Settings stops the token within minutes everywhere. Under the hood the server trades the token for a short-lived one before each burst of calls: nothing long-lived travels to the measurement API. Treat the token like a password.

Claude Code

claude mcp add praised --env PRAISED_TOKEN=<your personal API key> -- npx -y @praisedco/mcp-server

Then /mcp in a session lists praised and its tools.

Claude Desktop / Cursor / any JSON-configured client

Settings → Developer → Edit Config, then:

{
  "mcpServers": {
    "praised": {
      "command": "npx",
      "args": ["-y", "@praisedco/mcp-server"],
      "env": {
        "PRAISED_TOKEN": "<your personal API key>"
      }
    }
  }
}

Restart the app; the tools appear under the connectors menu.

Configuration

Variable Default Purpose
PRAISED_TOKEN (unset) Your personal API key from Settings → Personal API keys (praised_pat_…). Use this one.
PRAISED_SCOPE (unset) read makes a read-and-file-work token read only, for this server. Nothing widens a token.
LLMVIS_API_KEY (unset) A key minted by a self-hosted measure instance, sent as X-API-Key. Never exchanged.
PLATFORM_URL the hosted platform Where personal API keys are exchanged for short-lived tokens.
MEASURE_API_URL the hosted API Point at http://localhost:8000 to work against a local measure API.
STUDIO_URL the hosted studio Point at http://localhost:4444 for a local studio.
PRAISED_APP_URL https://app.praised.co Where search and fetch link a reading or a work item: the console.

The server refuses two credentials, and says why on the first call:

  • An org API key (vis_…, Settings → API keys) — the workspace's machine credential, which can change any figure. An org key belongs in a connector, never in an AI tool.
  • A pasted sign-in session — a session carries your full role and expires within a day.

How the token works. Measure and the studio verify signed tokens and can't look a personal token up. The server exchanges yours at the platform (POST /v1/auth/api-token) for a token that lives fifteen minutes, caches it until just before it expires, and re-exchanges automatically.

Apps that connect by signing in (Claude.ai, ChatGPT)

An app that takes a custom connector adds Praised by address: Settings → Connected apps shows the address where your deployment runs the hosted server. The app then asks you to sign in to Praised and choose what the app may do: read, or read and file work. A Viewer's or Commenter's app reads. Nothing an app holds changes a figure, and Settings → Connected apps disconnects an app within 15 minutes.

To run the hosted server yourself, start praised-mcp-http with:

Variable Purpose
MCP_PUBLIC_URL Where apps reach the server, e.g. https://mcp.example.com (required). The MCP endpoint is <MCP_PUBLIC_URL>/mcp.
PORT Where the server listens (default 8787).
PLATFORM_URL, PLATFORM_PUBLIC_URL The platform the server calls, and the authorization server named to apps.
MEASURE_API_URL, STUDIO_URL As above.

The hosted server is stateless: each request carries its own bearer, an app's OAuth token or a personal token in the header, and a sign-in session or an org key is refused before any service is asked.

The API

openapi.json, in this package, is the public API a personal API key reaches: the routes this server reads and writes, and the token exchange (POST /v1/auth/api-token). Every figure is served with its state, and with its interval and n where the figure has a value. Each figure route says how its envelope is had (x-praised-envelope): served with the figures, pinned by the answer's own window, or read from GET /v1/projects/{slug}/reading first. The file is generated from measure's own schemas (scripts/gen_openapi.py), and a test fails a stale copy.

Example questions

  • "List our measurement projects and tell me which tracks the most questions."
  • "What's our share-of-voice trend for acme — is the latest change real or noise?"
  • "Over the last 30 days, which domains do the engines cite, and are competitors cited where we aren't?"
  • "Show this week's hallucinations — what are the engines getting wrong about us?"
  • "How do we rank among the brands the engines name for our category?"
  • "What work is open on acme, and which fixes shipped last month actually moved the number?"
  • "Give me the paste-ready fix for the pricing page."

Troubleshooting

  • "The platform refused the personal API key" — it was revoked, it expired, or it belongs to a different environment. Make a new one in Settings → Personal API keys.
  • "not included in the … plan" — personal API keys come with every paid plan.
  • A 403 on a tool that files work — the token reads only. Make a read-and-file-work token (an Owner or an Editor can).
  • "Cannot reach the measure API at …" — no network access to the API, or MEASURE_API_URL points somewhere that isn't running.
  • A 503 mentioning authentication — the API you're pointed at hasn't got auth configured yet. That's a server-side setting, not something the client can fix.
  • Two transports: stdio (praised-mcp, the setup above) and streamable HTTP (praised-mcp-http, the hosted server for apps that connect by signing in; its endpoint is <MCP_PUBLIC_URL>/mcp).

Development

cd packages/mcp-server
npm install
npm run build     # → dist/index.js
npm test          # offline tests (mocked fetch)
npm run dev       # runs the TypeScript source directly

Requires Node ≥ 22.6. Against a local stack:

MEASURE_API_URL=http://localhost:8000 STUDIO_URL=http://localhost:4444 npm start

MIT licensed. Questions: hello@praised.co