mcp
v0.2.1MCP server for elessar: pull a brand's published, source-cited articles into your own site, and with a personal API key write, edit, approve, publish and…
A Model Context Protocol server for elessar. It lets your coding agent (Claude Code, Cursor) pull a brand's published, source-cited articles into your own website, and, with a personal API key, write, edit, approve, publish and delete your own. Without a key it reads elessar's public content API by the brand's site handle. Published content is public, so there is no key and no login, and it cannot write anything. Tools: list_articles, get_article (markdown, html or both, with images, sources and citations), get_sources, site_info.
Summary extracted from the README.
@tryelessar/mcp
A Model Context Protocol server for elessar. It lets your coding agent (Claude Code, Cursor) pull a brand's published, source-cited articles into your own website, and, with a personal API key, write, edit, approve, publish and delete your own.
Without a key it reads elessar's public content API by the brand's site handle. Published content is
public, so there is no key and no login, and it cannot write anything. Tools: list_articles,
get_article (markdown, html or both, with images, sources and citations), get_sources, site_info.
With ELESSAR_API_KEY set it adds twelve tools that act as you; see
Write, edit and delete with a key.
Which road is yours
elessar can put a brand's approved articles on the web three ways. This package is the third.
- The hosted blog. Choose a site address in elessar under Settings → Your website, and
publish an article from its page. It is read at
https://tryelessar.com/b/<handle>. Nothing to install. - A CMS connection. Connect WordPress, Webflow, Wix, Sanity, Ghost or GitHub under Settings → Your website, and press Publish on an approved article. Nothing to install.
- This MCP server, for a developer. Your site is your own code (Next.js, Astro, anything) and you want your coding agent to bring the articles in, sources and all. Read on.
Connect it
You need Node 18 or later and the brand's site handle: the address chosen under
Settings → Your website (for https://tryelessar.com/b/acme, the handle is acme). Only
articles someone has published to the site are visible.
Claude Code
claude mcp add elessar -- npx -y @tryelessar/mcp
Cursor, or any client that reads an mcpServers block
In .cursor/mcp.json (or your client's equivalent):
{
"mcpServers": {
"elessar": {
"command": "npx",
"args": ["-y", "@tryelessar/mcp"],
"env": { "ELESSAR_API_URL": "https://tryelessar.com" }
}
}
}
Then ask: "Add the latest article from the acme site on elessar to my blog, with its sources."
Install it instead of running it with npx
npm install -g @tryelessar/mcp
elessar-mcp # stdio
Write, edit and delete with a key
A personal API key lets your agent work in elessar as you: start an article from a project, check on it, edit it, approve it, publish it, archive it and delete it. The key acts with your role in one brand, checked on every request, so a viewer's key reads and cannot write. It cannot make or revoke keys, or touch members, billing, integrations or your account.
- In elessar, open Settings → Your website → For developers and make a key. It is shown once: copy it.
- Connect the server with the key in its environment.
Claude Code
claude mcp add elessar --env ELESSAR_API_KEY=elk_… -- npx -y @tryelessar/mcp
Cursor, or any client that reads an mcpServers block
{
"mcpServers": {
"elessar": {
"command": "npx",
"args": ["-y", "@tryelessar/mcp"],
"env": { "ELESSAR_API_KEY": "elk_…" }
}
}
}
Then ask: "Write an article from my Cats project on elessar about why cats sleep so much, and tell me when it is done."
The tools a key adds
| Tool | What it does |
|---|---|
whoami |
The brand the key acts in, your role there, and the key's name. |
list_projects |
The brand's projects: the collections of links articles are written from. |
write_article |
Starts an article from a project (projectId, optional topic). Every claim is cited from the project's sources; it never writes from text the agent supplies. Uses credits. Answers at once with a runId. |
article_status |
A run's status and step; its article when done; its plan when it waits for a go-ahead. |
list_my_articles |
The brand's articles, with status and how many claims are cited (status, projectId, archived, limit). |
get_my_article |
One article: body (markdown, html or both), title, SEO fields, sources, and the sentences that still need a source. |
edit_article |
Changes the body (HTML), title, meta title, meta description or slug, as a new version. It reads the current version first, and names any sentence that lost its source. |
rewrite_article |
Rewrites an article to your notes, on the same sources, as a new revision. Uses credits. |
approve_article |
Approves an article for publishing. |
publish_article |
Publishes an approved article to the brand's hosted blog (to: "site", the default) or a connected destination (wordpress, webflow, wix, sanity, ghost, github). |
restore_article |
Brings an archived article back. |
delete_article |
Archives an article; with permanently: true, deletes an archived one for good. |
What is guarded
- Approval. While claims still need sources,
approve_articlerefuses and says which and how many. OnlyapproveAnyway: true, which your agent should ask you about first, approves with claims uncited, as Approve anyway does in the app. - Permanent deletion.
delete_articlearchives by default, and an archived article can be restored.permanently: trueworks only on an article already archived, and the tool is marked destructive so your agent asks before using it. A copy already sent to your website stays there. - Your key. It is never printed, logged by this server, or included in an answer. A refused request is one sentence: a revoked key says to make a new one in Settings → Your website → For developers.
Revoke a key any time under Settings → Your website → For developers.
Run it
- stdio (default, for local agents):
npx -y @tryelessar/mcp - Streamable HTTP:
npx -y @tryelessar/mcp --http 3333serveshttp://127.0.0.1:3333/mcp
ELESSAR_API_URL is optional. It defaults to https://tryelessar.com. ELESSAR_API_KEY is optional too:
without it the server is read-only.
Keep the sources
Every article elessar publishes cites its sources, and each claim resolves to a passage in one of them.
get_article returns the sources and the citations with the body; render them with the article so your
readers can check what it says.
Develop
pnpm --filter @tryelessar/mcp test
pnpm --filter @tryelessar/mcp build # tsc to dist/, the bin elessar-mcp
Publishing to npm is done by hand from a clean build (npm publish from apps/mcp; publishConfig.access
is public, and prepack builds dist/ first).