@socheli/mcp
Enables MCP-enabled agents to manage Socheli content: list, inspect, generate renders, dispatch to device fleet, publish across platforms, and curate the dated content plan via natural language.
README
<div align="center">
@socheli/mcp
A Model Context Protocol server that gives Claude — and any MCP-enabled agent — your Socheli content engine as tools.
List and inspect content, dispatch renders to your device fleet, check device status, publish across platforms, and read/curate the dated content plan — all from a chat with your agent.
</div>
What it is
@socheli/mcp is a Model Context Protocol server that exposes Socheli as agent tools, so Claude (or any MCP client) can inspect content, dispatch renders to the fleet, publish finished posts, and read & curate the dated content plan — by talking to it in natural language.
It is a dependency-free stdio JSON-RPC server built on top of @socheli/sdk, which it uses to talk to the Socheli HTTP API. Every tool call is a typed SDK call under the hood. Authentication is one Socheli API key.
Under the hood it speaks the 2024-11-05 MCP protocol over stdin/stdout using Content-Length-framed JSON-RPC, and advertises a tools capability with serverInfo { name: "socheli", version: "0.1.0" }.
Install
npm i -g @socheli/mcp
# or run on demand, no install:
npx @socheli/mcp
The package ships a socheli-mcp binary. Most users don't run it directly — they point an MCP client at it (see Quickstart).
Authentication
The server is configured with two environment variables — one for the API base URL, one for your API key:
| Env var | Required | Default | Description |
|---|---|---|---|
SOCHELI_API_KEY |
yes | — | Your Socheli API key (e.g. sk_live_xxx). Sent as a bearer token to the Socheli API. |
SOCHELI_API_URL |
no | https://api.socheli.com |
The Socheli API base URL. |
These are passed to createSocheli({ baseUrl: process.env.SOCHELI_API_URL, apiKey: process.env.SOCHELI_API_KEY }). The SDK then authenticates to the API with Authorization: Bearer <SOCHELI_API_KEY> on every request. A wrong key yields 401; a server with no key configured yields 503.
Set these in your MCP client's
envblock (below), not in a shell, so the agent process inherits them.
Quickstart
Add Socheli to your MCP client. For Claude Desktop / Claude Code, drop this into your .mcp.json (or claude_desktop_config.json):
{
"mcpServers": {
"socheli": {
"command": "npx",
"args": ["@socheli/mcp"],
"env": {
"SOCHELI_API_URL": "https://api.socheli.com",
"SOCHELI_API_KEY": "sk_live_xxx"
}
}
}
}
Running from a checkout of the monorepo instead of npm? Use the source entry directly:
{
"mcpServers": {
"socheli": {
"command": "node",
"args": ["--import", "tsx", "packages/mcp/src/index.ts"],
"env": {
"SOCHELI_API_URL": "https://api.socheli.com",
"SOCHELI_API_KEY": "sk_live_xxx"
}
}
}
}
Then just talk to your agent:
- "Use socheli to list the last 5 items and their QA scores."
- "Generate a video about the science of habit on
concept_laband auto-publish it." - "What devices are online right now?"
- "Show me everything planned for next Tuesday and archive anything scoring under 7."
- "Move the Instagram post on the 20th to the 25th at 2:30pm."
Tool reference
Core
| Tool | Description | Arguments |
|---|---|---|
socheli_list_items |
List recent content items (id, status, QA score, title). | limit? (number, default 20), channel? (string) |
socheli_get_item |
Get the full detail of one content item by id — idea, script, storyboard, package, video URL, publish state. | id (string, required) |
socheli_generate |
Dispatch a new render job to the device fleet from an idea/seed. type: "auto" also publishes; type: "new" builds only. |
seed (string, required), channel? (string, default concept_lab), type? ("new" | "auto"), mood? (string), voice? (boolean) |
socheli_jobs |
List recent fleet jobs and their status (dispatched/running/done/error) and which device ran them. | (none) |
socheli_fleet_status |
Show connected render devices and how many are online/idle/busy. | (none) |
socheli_publish |
Publish a finished item to every configured platform (YouTube / Instagram / TikTok + bundle). Set public to go public. |
id (string, required), public? (boolean) |
Calendar & plan (plan_*)
The full plan_* CRUD is exposed too, so an agent can read and curate the dated content plan exactly the way the dashboard's day dialog does — open a day, open an event, edit / move / archive / delete. Posts live as PlannedPost records.
| Tool | Kind | Description | Arguments |
|---|---|---|---|
plan_list |
read | List planned posts (newest plan-run first). | channel?, status?, includeArchived? (default false) |
plan_get |
read | One full post by id. | id |
plan_day |
read | Every post for one date, sorted by time — the day-view data. | date, includeArchived? |
plan_create |
mutate | Hand-add a post. | channel, date, time?, platform, topic, angle?, format?, mood?, hook?, rationale?, algoLever?, status? |
plan_update |
mutate | Edit fields on a post. | id, patch (any of date/time/status/platform/mood/topic/angle/format/hook/rationale/algoLever) |
plan_move |
mutate | Reschedule a post (drag-and-drop equivalent). | id, date, time? |
plan_archive |
mutate | Soft-hide a post (status → archived; reversible). |
id |
plan_delete |
mutate | Permanently delete a post (not reversible). | id |
plan_strategy |
read | The saved strategy brief for a channel (channel brief + subject playbook + per-cluster cadence). | channel |
plan_run |
long | Run the algo planner for a channel and append a dated plan. Returns a started job. | channel, days? (default 14), platforms?, time? |
All mutations return the affected post. plan_archive is reversible (plan_update the status back to idea); plan_delete is not.
The PlannedPost
type PlannedPost = {
id: string;
date: string; // YYYY-MM-DD
time: string; // HH:MM
channel: string; // brand / channel id
platform: "youtube" | "instagram" | "tiktok" | "x" | "linkedin" | "telegram";
topic: string;
angle: string;
format: string; // short | explainer | …
mood?: string;
hook?: string;
rationale: string;
algoLever?: string; // which algorithm lever this idea exploits
scores?: Record<string, number>;
overall?: number;
status: "idea" | "approved" | "scheduled" | "generated" | "dropped" | "archived";
planRunId: string;
createdAt: string;
updatedAt?: string;
};
How it works
The server implements the MCP JSON-RPC methods below over a Content-Length-framed stdio transport:
| Method | Behavior |
|---|---|
initialize |
Returns protocolVersion (echoes the client's, default 2024-11-05), capabilities: { tools: {} }, and serverInfo: { name: "socheli", version: "0.1.0" }. |
notifications/initialized |
Acknowledged (no-op). |
tools/list |
Returns every tool's name, description, and inputSchema. |
tools/call |
Looks up the named tool, runs it via the SDK, and returns the result as { content: [{ type: "text", text }] }. Unknown tools return JSON-RPC error -32601. |
Each tool's run maps directly to an @socheli/sdk call — e.g. socheli_list_items → socheli.items.list(...), socheli_generate → socheli.generate(...), socheli_publish → socheli.items.publish(...). Tool errors are returned to the agent as text content with isError: true rather than as transport errors, so the model can read and react to them.
The Socheli surfaces
Socheli is built API-first. This MCP server is one of four public client surfaces, all speaking to the same control plane:
| Surface | Package | Repo |
|---|---|---|
| HTTP API | @socheli/api |
Socheli/api |
| SDK | @socheli/sdk |
Socheli/sdk |
| CLI | @socheli/cli |
Socheli/cli |
| MCP | @socheli/mcp |
Socheli/mcp — you are here |
Full documentation lives at docs.socheli.com.
Developed in the Socheli monorepo
@socheli/mcp is developed inside the Socheli monorepo (as packages/mcp) alongside the API, SDK, CLI, and engine, and mirrored to this repo for publishing. Issues and PRs are welcome here.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。