Use your workspace from code
Every Eden MCP tool as a plain web call. Schedule posts, search Discover, read boards, upload files, and talk to your Custom AIs.
View as markdownEvery tool in Eden's MCP also works as a plain web call: POST https://mcp.eden.so/v1/tools/<tool name> with the tool's fields as the JSON body. You don't need an MCP client.
Run a tool
curl -X POST "https://mcp.eden.so/v1/tools/eden_search_social_content" \
-H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
-d '{"scope":"global","query":"morning routine"}'
GET https://mcp.eden.so/v1/toolslists every tool your key can use, with the fields each one takes.https://mcp.eden.so/v1/openapi.jsonhas every tool in one OpenAPI file.- The answer is
{ "ok": true, ... }, or{ "ok": false, "status": "...", "message": "..." }with a matching HTTP code. - Leave out
workspaceIdto use your default workspace.
Schedule a post
curl -X POST "https://mcp.eden.so/v1/tools/eden_schedule_post" \
-H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
-d '{"text":"Three things I learned this week","platforms":["linkedin"],"scheduledAtIso":"2026-10-06T15:00:00Z"}'
Scheduling needs Starter or above. eden_list_schedules shows your connected accounts and time zone. Add "draft": true to save it for review instead. To hear back when it goes out or fails, add a webhook.
Upload a file for a post
Send an image, video, or PDF in one call:
curl -X POST "https://mcp.eden.so/v1/media" \
-H "Authorization: Bearer <key>" -F "[email protected]"
You get back an asset. Put it in eden_schedule_post's media list. Files go up to 100 MB in JPG, PNG, WebP, GIF, PDF, MP4, MOV, or WebM. Add -F "workspace_id=<id>" to pick a workspace.
Talk to a Custom AI
Send a message to one of your Custom AIs and get its answer, with its instructions, knowledge, and tools:
curl -X POST "https://mcp.eden.so/v1/tools/eden_ask_custom_ai" \
-H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
-d '{"customAIId":"<id>","message":"Write me three hooks about focus"}'
- Get the id from
eden_list_custom_ai. Leave it out to ask Eve. - Most answers come back with
"status": "answered". A long one says"running"with achatId: calleden_get_custom_ai_answerwith it a few seconds later. - Send the same
chatIdagain to keep the conversation going. The chat shows up in your Eden sidebar.
Read a board by tag
Get only the items on a board that carry certain tags, the same as clicking chips in the board's tag bar:
curl -X POST "https://mcp.eden.so/v1/tools/eden_read_board" \
-H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
-d '{"itemId":"<board id>","tags":["Post idea","Newsletter"]}'
tagstakes tag names or ids. An item with any of them comes back.- Add
"untagged": trueto also get items with no tags, or send it alone to get only those. - Each item lists its
tags. The top-leveltagslists every tag on the board with acount. eden_list_tagslists your workspace's tags.eden_update_item_tagsadds or removes them.
Credits and limits
- Research calls cost 0.1 to 0.5 AI credits, the same as through MCP. Saving, scheduling, uploads, and reading your own workspace are free.
- Each Custom AI message costs what chatting in Eden does: 1 credit, or 2 with
"mode": "max". - 120 calls a minute per key, shared with MCP. A key only sees the tools its access allows. Changes need Full access or a Custom key with that part on Edit.
Tools inside Eden
Being tested. These answer 404 until Tools is switched on for your account.
Tools are pages inside Eden, like Strategy and the Hook tester. The same calls the Tools page
makes work with your key, at https://api.eden.so/v1/my-tools. Send workspaceId with each one.
| Call | What it does |
|---|---|
GET /v1/my-tools?workspaceId= | Eden's tools, with which ones you added |
POST /v1/my-tools/{id}/install | Add a tool. Body: workspaceId, scopes (everything it asks for) |
DELETE /v1/my-tools/{id}/install | Remove it |
PATCH /v1/my-tools/{id} | monthlyCap (credits, or null for none), off (true or false) |
GET /v1/my-tools/{id}/usage | This month's credits and the last 50 calls |
POST /v1/my-tools/{id}/call | Run one kit call as you: method and args |
A call runs only when the tool is added, on, allowed to do that, and under its monthly limit.
Inside Eden, a tool makes the same calls with the eden.* kit:
const found = await eden.social.search({ query: "morning routine", limit: 10 });
const answer = await eden.ai.write({ prompt: "Score this hook: ...", maxWords: 200 });
await eden.data.set("history", [{ hook: "...", score: 7 }]);
| Kit call | Needs | Credits |
|---|---|---|
social.search, social.readPost, social.creators | social | 0.1 |
ai.write | ai | 1 |
boards.list, boards.read, boards.search | boards_read | Free |
boards.saveNote | boards_write | Free |
strategy.read | strategy | Free |
data.get, data.set, data.list, data.delete | data | Free |
db.tables, db.list, db.get | data | Free |
db.add, db.update, db.delete | data | Free |
Nothing in the kit can post, email, schedule, or publish.
Eden's look and building blocks
Every tool page gets Eden's look and a few trusted parts, built in. Nothing loads from the
internet: the window still can't reach anything but Eden. Use the e- classes and the tool looks
like the rest of Eden in light and dark, and follows the person's theme as it changes.
<main class="e-page">
<header class="e-header">
<div>
<h1 class="e-title">Content planner</h1>
<p class="e-sub">Plan the week.</p>
</div>
</header>
<div class="e-card">
<span class="e-tile" data-color="blue"><span data-icon="calendar"></span></span>
<select>
<option>X</option>
<option>LinkedIn</option>
</select>
<button class="e-btn e-btn-primary">Save</button>
</div>
</main>
| Part | What you get |
|---|---|
| Layout | e-page, e-header, e-title, e-sub, e-section, e-heading, e-grid-2, e-grid-4 |
| Cards | e-card (Eden's raised card), e-card-row, e-action (like Home's cards) |
| Color tiles | e-tile with data-color (green, blue, purple, orange, amber, red, pink, gray, indigo, teal) |
| Buttons | e-btn with e-btn-primary, e-btn-secondary, e-btn-ghost, e-btn-icon, e-btn-sm |
| Inputs | Plain inputs and textareas look right on their own; e-field and e-label for a label |
| Chat input | e-composer with a textarea, e-composer-bar, and an e-send button |
| Dropdowns | Every <select> becomes Eden's dropdown on its own (data-native keeps a plain one) |
| Choices | e-choices and e-choice cards with a radio inside |
| Small parts | e-tabs, e-chip, e-tag, e-badge, e-note, e-switch, e-row, e-empty, e-skeleton |
| Icons | <span data-icon="search"></span> or eden.ui.icon("search") (Eden's icon set) |
And four parts in code:
eden.ui.menu(button, [
{ label: "Edit", icon: "pencil", onSelect: edit },
{ separator: true },
{ label: "Delete", icon: "trash", danger: true, onSelect: remove },
]);
eden.ui.toast("Saved", { tone: "success" });
// Drag to reorder, or between lists in one group (a kanban board).
eden.dnd.sortable(listEl, {
group: "board",
handle: ".e-grip",
onEnd: (e) => save(e.item, e.to, e.newIndex),
});
// Charts in Eden's colors.
eden.chart.bar(el, {
labels: ["Mon", "Tue"],
series: [{ name: "Views", values: [120, 340] }],
format: "compact",
});
eden.chart.line(el, { labels, values });
eden.chart.donut(el, { labels, values });
// Dates, and a month calendar where posts can be dragged to another day.
eden.dates.format("2026-11-24", "weekday"); // "Tue, Nov 24"
eden.dates.calendar(el, { events, onEventMove: (event, day) => move(event.id, day) });
Tool tables
A tool that keeps lots of things (newsletters and their issues, cards on a planner) declares small
tables, and Eden checks every row against them. Fields can be text, number, boolean, date,
list, object, or ref (the id of a row in another table). A row with a field the table doesn't
have is refused, so a typo shows up right away.
const issues = eden.db.table("issues");
const issue = await issues.add({ newsletter: letterId, title: "Week 12", status: "draft" });
const { rows, cursor } = await issues.list({ where: { status: "draft" }, orderBy: "position" });
await issues.update(issue.id, { status: "sent" }, issue.version);
await issues.delete(issue.id);
Every row comes back with id, version, createdAt, updatedAt, and its fields in data.
Send the version you read with an update or delete and Eden refuses it (409) if someone changed
the row since. Setting a field to null clears it. Lists go newest first, or by a field the table
lets you sort by, 50 rows at a time (100 at most). Pass the cursor you got back for the next page.
The same calls with your key:
| Call | What it does |
|---|---|
GET /v1/my-tools/{id}/tables?workspaceId= | The tool's tables and how much room it has used |
GET /v1/my-tools/{id}/tables/{table}/rows | List. where (JSON), orderBy, direction, limit, cursor |
GET /v1/my-tools/{id}/tables/{table}/rows/{row} | One row |
POST /v1/my-tools/{id}/tables/{table}/rows | Add. Body: workspaceId, data |
PATCH /v1/my-tools/{id}/tables/{table}/rows/{row} | Change some fields. Body: workspaceId, changes, version |
DELETE /v1/my-tools/{id}/tables/{table}/rows/{row} | Delete. version is optional |
A row is seen only by the person who saved it, unless the table is shared with the workspace. Each tool has room for 10,000 rows and 50 MB per workspace, and one row can be 256 KB.
Make your own tool
A tool you make is a few plain files, with no build step. Eden runs them in the same sealed window as its own tools, with the look kit and building blocks above already loaded.
| File | What it holds |
|---|---|
index.html | The page's markup. Link style.css and <script type="module" src="app.js"> |
style.css | Anything the look kit doesn't cover |
app.js | The code, as a JavaScript module. More modules can sit beside it (./lib/x.js) |
tool.json | name, description, color, icon (from the icon list), and its tables |
Lower case names ending in .html, .css, .js, .json, or .md, at most two folders deep. Up to
24 files, 200 KB each and 600 KB in all. The window can't reach the internet, so fetch and links to
other sites are blocked; use the kit.
Eden reads what the tool does from its code (each eden.social, eden.ai, eden.boards,
eden.strategy, eden.data, or eden.db it uses) and asks you to allow exactly that. If a new
version uses something more, the tool asks again before it runs.
// Start a tool with its files, then send new files whenever you change them.
const { tool } = await post("/v1/my-tools/made", { workspaceId, files });
await put(`/v1/my-tools/made/${tool.id}/files`, { workspaceId, files, note: "Add a week view" });
| Call | What it does |
|---|---|
POST /v1/my-tools/made | Start a tool. Body: workspaceId, optional name and files |
GET /v1/my-tools/made/{id}?workspaceId= | Its files, its versions, and the builder chat |
PUT /v1/my-tools/made/{id}/files | Save new files as the next version. Body: files, note |
GET /v1/my-tools/made/{id}/versions/{n} | One version's files |
POST /v1/my-tools/made/{id}/versions/{n}/restore | Go back to version n (saved as the newest) |
PATCH /v1/my-tools/made/{id} | name, description |
DELETE /v1/my-tools/made/{id} | Delete it, every version, and everything it saved |
POST /v1/my-tools/made/{id}/build | Ask Eden's AI for a change. Body: message. 2 credits |
POST /v1/my-tools/{id}/install | Allow what it uses. Body: scopes |
build answers as a stream of JSON lines while Eden works (status, text), ending with done
(the new files and version) or error. Your tools show in GET /v1/my-tools with kind: "made".
They're private to you in that workspace, and new ones start with a 20 credit monthly limit.