DOCS › SELF-HOST › MCP CLIENTS

MCP clients

An AI assistant can read your desk and propose or draft articles over MCP. Approving, rejecting and publishing stay in the browser, with you.

PERSONAL TOKEN · STDIO

The Morningdesk MCP server runs on your computer (stdio) and talks to your desk over its API with a personal token. An AI assistant can read the desk and propose or draft articles. It can't approve, reject or publish anything: those happen in the browser, by you.

1. Create a token

In the desk, open Settings › MCP, name the token (for example "Claude Desktop") and create it. Copy it right away: it is shown once. Tokens start with mdk_. The list shows when each token was last used; revoke one there and any client using it stops at once.

2. Add the server to your client

Claude Desktop: Settings › Developer › Edit Config opens claude_desktop_config.json. Add:

terminal
{
  "mcpServers": {
    "morningdesk": {
      "command": "npx",
      "args": [
        "-y",
        "@morningdesk/mcp"
      ],
      "env": {
        "MORNINGDESK_URL": "http://localhost:4400",
        "MORNINGDESK_TOKEN": "mdk_paste_your_token_here"
      }
    }
  }
}

MORNINGDESK_URL is the address you open the desk at (Settings › MCP shows this snippet with your desk's address filled in). Paste your token in place of mdk_paste_your_token_here, save, and restart Claude Desktop.

Until @morningdesk/mcp is on npm, run it from a checkout of this repository instead:

terminal
pnpm install
pnpm --filter @morningdesk/mcp build

and use "command": "node" with "args": ["/path/to/morningdesk/packages/mcp/dist/morningdesk-mcp.mjs"] in the config above. Any other stdio MCP client takes the same command, arguments and two variables.

Keep the token out of shared files and screenshots. The server never logs it or puts it in an error message.

Tools

Tool What it does Changes anything
today Today's list: up to five things worth doing, the lead first, each with its number, source and date, then what the edition checked. Pages held off Today are counted there, each once: Barely visible, lost demand, a core update, then pages you changed that Google hasn't measured yet (with Update suggestions for them). No
rankings Search Console clicks, impressions, CTR and position by query or page, over a range. No
opportunities Queries the site shows for but rarely gets clicked on, by page (new or refresh, with the target page and how it matched), over 28d, 3m or 12m; seasonal peak month, sort: coming_up for queries peaking in the next 3 months, and the target page's GA4 conversions (last 28 days; not_measured with a reason, never 0). No
slipping Pages losing clicks or position: last 28 days against the 28 before, with the queries that dropped, why (demand: demand fell, lost ranking, fewer clicks at the same rank, not enough data or mixed, with the same 28 days last year) core_update (the Google core update it slipped during, or null: wait 14 days after one ends before rewriting) and the page's GA4 conversions. demand can also be barely_visible (listed last: it only showed on page 3 or lower, so nothing real was lost and it isn't on Today). Each page carries index (Google's stored URL Inspection result, or null) and cooldown (unseen, measuring or estimated while the page is on hold after a change Google hasn't measured yet, with the date it opens; ready otherwise). No
readiness AI readiness scores: site score, failing pages, the fix that covers the most pages; one page with path. No
ai_citations Whether ChatGPT, Claude, Perplexity and Gemini cite or name the site for its tracked prompts, with perception, stage and topic per answer, stage totals and lost citations. No
ai_sources Site pages the engines considered but didn't cite in the latest run, with the prompts, engines and who was cited instead. No
prompt_run_plan The plan for the next prompt run: prompts by topic and stage, engines and the estimated cost. It can't start a run. No
articles_list Articles by tab (all, needs_you, in_progress, published, closed) with status and next step, and live articles' GA4 conversions (last 28 days) with the site's conversion status. No
article_get One article: proposal (with its [NEEDS PROOF] gaps), sources, draft progress, the latest draft in Markdown, its checks and whether approval is blocked. No
facts_list The site's accepted facts that aren't private, plus the suggestions this assistant made. Drafts may cite only accepted facts. No
propose_article Asks the desk's writer for a proposal on a topic. It waits for your approval. Refused (cooldown) when the query belongs to a page on hold after a recent change; the message says when it opens. Adds a proposal
draft_article Starts drafting a proposal you approved (batch by default, or now). Starts a draft
submit_for_approval Submits a draft the assistant wrote for an approved proposal. The desk checks it like its own drafts. Adds a draft version
fact_suggest Suggests one fact (one sentence, kind, source, as-of date). It stays suggested until a person accepts it in Settings › Facts; an assistant can't accept, retire or change facts. Adds a suggestion

Every tool has a title and read-only, destructive, idempotent and open-world hints, so clients can ask before the four that change something. Site tools take an optional domain (needed only when the desk has more than one site).

propose_article and draft_article use the desk's Anthropic key and count toward its monthly AI spend limit. A draft submitted over MCP is labelled "Drafted by Claude Desktop via MCP" (the name your MCP client gives itself; "Claude" when it gives none); the draft also shows which token sent it. It needs the same two approvals as any other: you approve the proposal, then the draft, in the browser. The desk records which tool each request came from (mcp_tool_called, in its own event table only).

When something goes wrong

The assistant says What to do
"This Morningdesk token was revoked. Create a new one in Settings › MCP." Create a new token, put it in the config, restart the client.
"Can't reach Morningdesk at http://…" Start the desk, or fix MORNINGDESK_URL (include http:// or https:// and the port).
"… answered with something that isn't Morningdesk" MORNINGDESK_URL points at another site or a proxy page.
"Set MORNINGDESK_URL …" or "MORNINGDESK_TOKEN is not a Morningdesk token …" The config is missing a variable, or the token was pasted wrongly.
"This desk has 3 sites: … Pass domain to pick one." Name the site in your request, for example "on example.com".
"Approve, reject and publish happen in the browser, by a person." As it says: open the desk.