Neural Draft

io.github.vbalagovic由 GitHub 账号 vbalagovic 发布v0.4.2更新于 Oct 24, 2026

Neural Draft MCP — CMS, blog, bookings, galleries, commerce. 38 tools.

已验证STDIO仅桌面开发者工具商业与电商

概览

AI 生成的概览

Neural Draft MCP 让编程助手在搭建客户网站时接入 Neural Draft:读取品牌、创建页面、可编辑内容键、图库、博客草稿与预约服务。

可以做什么
  • 读取并更新工作区品牌(语气、受众、配色、字体、语言)
  • 创建、读取、更新和删除页面,并向托管站点添加带菜单链接的页面
  • 注册和删除可编辑内容键与组件,读取或删除内容
  • 列出、注册、替换和删除图片,并管理图库
  • 按品牌语气生成博客草稿,列出或更新博客文章
  • 创建可预约服务与预约组件,读取商品、订阅者和联系表单提交
适用场景
适合助手正在 Neural Draft 上搭建或扩展网站、并需要让客户可自行编辑内容的场景,也适合代理机构用一个服务器管理多个客户工作区。部署构建、自定义域名和线上文案编辑由托管连接器负责,不需要此包。
运行要求
通过 npx 本地运行,需要 Node 20+。需要 Neural Draft 工作区 API 密钥,放在 NEURALDRAFT_API_KEY(多工作区用 NEURALDRAFT_API_KEYS,并用 NEURALDRAFT_WORKSPACE 指定当前工作区)。可选 NEURALDRAFT_API_URL、NEURALDRAFT_PROJECT_ID、NEURALDRAFT_DISPLAY_NAME。需能访问 Neural Draft API。
安装前请注意
API 密钥是真实凭据(ndsk_live_…),可访问对应工作区,切勿提交到代码库,建议用环境变量引用。许多工具会写入或删除数据——页面、内容键、组件、图片、图库、博客文章和可预约服务——会直接影响客户的工作区。单个密钥只能访问所属工作区,但 NEURALDRAFT_API_KEYS 中放入多个密钥即可访问全部。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Neural Draft,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Neural Draft MCP server (@neuraldraft/mcp)

The backend for sites built with AI: CMS, blog, bookings, forms, shop and social, one database per client. Your coding assistant wires the CMS while it builds; clients edit in a web editor or through Claude.

[npm version] [npm downloads] [MCP Registry] [License: MIT] [Docs]

@neuraldraft/mcp is a Model Context Protocol server (stdio, MIT) for Neural Draft. Add it to Claude Code, Cursor, Codex or VS Code with a workspace API key, and while your assistant builds a client's site it can:

  • read the brand (voice, audience, colours, fonts, languages) before it writes a line;
  • create pages with SEO meta, and register editable content keys and components, so the client can change words and pictures in the Neural Draft editor without you;
  • add a page or sub-page to the hosted site in its own design, with a menu link;
  • set up bookable services, galleries and blog drafts, and read products, form submissions and newsletter sign-ups;
  • work across several client workspaces from one server (agencies).

Every client is its own Neural Draft workspace with its own Postgres database, API keys and team. A key only reaches the workspace it belongs to.

[A Claude Code session driving Neural Draft over MCP]

Install

You need Node 20+ and a workspace API key: in the Neural Draft admin, Settings → For developers → API keys (ndsk_live_…). Free plan included, no credit card.

Claude Code

bash
claude mcp add neuraldraft-dev -e NEURALDRAFT_API_KEY=ndsk_live_... -- npx -y @neuraldraft/mcp

Add --scope project to write it to the project's .mcp.json, and keep the key out of git with an env reference:

json
{  "mcpServers": {    "neuraldraft-dev": {      "command": "npx",      "args": ["-y", "@neuraldraft/mcp"],      "env": { "NEURALDRAFT_API_KEY": "${NEURALDRAFT_API_KEY}" }    }  }}

Run /mcp to check it's connected.

Cursor

.cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

json
{  "mcpServers": {    "neuraldraft-dev": {      "command": "npx",      "args": ["-y", "@neuraldraft/mcp"],      "env": { "NEURALDRAFT_API_KEY": "ndsk_live_..." }    }  }}

Codex

bash
codex mcp add neuraldraft-dev --env NEURALDRAFT_API_KEY=ndsk_live_... -- npx -y @neuraldraft/mcp

or ~/.codex/config.toml:

toml
[mcp_servers.neuraldraft-dev]command = "npx"args = ["-y", "@neuraldraft/mcp"]env = { NEURALDRAFT_API_KEY = "ndsk_live_..." }

VS Code

.vscode/mcp.json:

json
{  "servers": {    "neuraldraft-dev": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@neuraldraft/mcp"],      "env": { "NEURALDRAFT_API_KEY": "ndsk_live_..." }    }  }}

Continue

~/.continue/config.yaml:

yaml
mcpServers:  - name: neuraldraft-dev    command: npx    args: ["-y", "@neuraldraft/mcp"]    env:      NEURALDRAFT_API_KEY: ndsk_live_...

Several client workspaces (agencies)

Each client has its own workspace and its own key. Put them all in one server and switch between them with list_workspaces / switch_workspace; every other tool acts on the active workspace.

json
{  "mcpServers": {    "neuraldraft-dev": {      "command": "npx",      "args": ["-y", "@neuraldraft/mcp"],      "env": {        "NEURALDRAFT_API_KEYS": "linden-bakery=ndsk_live_...,villa-lavanda=ndsk_live_...",        "NEURALDRAFT_WORKSPACE": "linden-bakery"      }    }  }}

NEURALDRAFT_API_KEYS also accepts a JSON object ({"linden-bakery":"ndsk_live_..."}). See Several workspaces.

Environment variables

VariableRequiredNotes
NEURALDRAFT_API_KEYone of these twoOne workspace key, ndsk_live_…
NEURALDRAFT_API_KEYSone of these twoSeveral workspaces: name=key,name=key or a JSON object
NEURALDRAFT_WORKSPACEnoWhich of NEURALDRAFT_API_KEYS is active at start (default: the first)
NEURALDRAFT_API_URLnoDefault https://api.neuraldraft.io/v1
NEURALDRAFT_PROJECT_IDnoOverride when one key spans several projects
NEURALDRAFT_DISPLAY_NAMEnoFriendly name in your client's server list

NEURAL_DRAFT_* spellings are accepted as aliases. A missing or malformed key fails at start with a message showing a working config. Never commit keys.

Remote / hosted connector

Neural Draft also runs a hosted remote MCP server, no API key and nothing to install:

https://neuraldraft.io/mcp

Streamable HTTP with OAuth sign-in (Google or an emailed code). It works in Claude, ChatGPT, Codex, Claude Code, Cursor and VS Code, and it adds what this package doesn't do: deploying a build (deploy_site, rollback_site), custom domains, editing live site texts, bookings and availability, the blog, social scheduling, and finished ads and reels crafted by Batchcraft for your brand. We don't offer AI image or video creation. We craft finished static ads and reels for your brand.

bash
# Claude Codeclaude mcp add --transport http neuraldraft https://neuraldraft.io/mcp# Codexcodex mcp add neuraldraft --url https://neuraldraft.io/mcp && codex mcp login neuraldraft

Claude: Customize → Connectors → Add custom connector. ChatGPT: Settings → Apps → Add custom MCP server. Paste the URL and sign in. Setup for every app: Hosted connector.

Hosted connector@neuraldraft/mcp (this repo)
AuthSign-in (OAuth)API key per workspace
RunsRemote, Streamable HTTPLocally via npx (stdio)
Best forHosting and deploying the site, client edits, domains, blog, bookings, socialsWiring a codebase: brand, content keys, components, pages, galleries
Several clientsTick workspaces at sign-inNEURALDRAFT_API_KEYS

Developers often add both to Claude Code or Codex.

Tools

GroupTools
Workspaceslist_workspaces, switch_workspace, find_workspaces
Brandget_brand, update_brand
Contentcreate_translation_keys, get_content, list_content, delete_content, register_component, delete_component
Pagescreate_page, list_pages, get_page, update_page, delete_page, add_site_page
Images and gallerieslist_images, get_image, register_image, replace_image (by URL), delete_image, list_galleries, get_gallery, create_gallery, update_gallery, delete_gallery
Bloggenerate_blog_post (a draft in the brand's voice), list_blog_posts, get_blog_post, update_blog_post
Bookings and shopcreate_bookable_service, setup_booking_widget, list_products, get_product
Formslist_newsletter_subscribers, list_contact_form_submissions
Accountget_usage, get_job

generate_image and generate_video are still registered for older clients but are retired: the API answers them with 410 media_generation_moved.

Resources

URIWhat
brand://currentVoice, audience, colours, fonts, languages. Read before generating UI.
schema://blog-postBlog post response shape
schema://productProduct and variant shape
schema://bookingServices, bookings, availability
conventions://editable-htmlThe data-translate / data-image-key markup rules
conventions://api-usageAuth, errors, rate limits, jobs

Prompts

PromptWhat it does
/scaffold-marketing-siteA full marketing site wired to Neural Draft (brand, editable keys, components)
/scaffold-blog-pageA /blog index and post page in an existing project
/connect-existing-siteMake an existing static site editable through Neural Draft

Full reference: Tools, resources and prompts.

Try it

Read brand://current, build a hero and a services section for this site with editable keys, and register them with Neural Draft.

The assistant reads the brand, writes markup with data-translate and data-image-key, creates the keys and registers the sections, so they show up in the client's admin as editable.

Docs

Local development

bash
git clone https://github.com/vbalagovic/neuraldraft-mcp.gitcd neuraldraft-mcpnpm installnpm run lint    # tsc --noEmitnpm testnpm run build   # → dist/

Run against a local API:

bash
NEURALDRAFT_API_KEY=ndsk_test_xxx NEURALDRAFT_API_URL=http://localhost:8080/v1 npm run dev

Inspect with the MCP Inspector: npx @modelcontextprotocol/inspector node dist/index.js.

The server is a thin wrapper over the Neural Draft Project API v1: every tool maps to one or a few REST calls. It never writes to stdout at runtime (stdio transport).

Contributing

Issues and PRs welcome. Keep tests passing (npm test), use the existing register* helper pattern for new tools, and update the tables above for any new surface.

License

MIT


Built by Neural Draft. Questions: [email protected].

来源:README.md,提交 b723b88

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.4.2最新Oct 16, 2026
  2. v0.3.4Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分