CNCjs MCP Server

CNCjs MCP Server

Bridges Claude Code to CNCjs to enable remote control and monitoring of GRBL-based CNC machines. It provides a comprehensive toolset for managing G-code jobs, machine movement, and safety operations through natural language.

Category
访问服务器

README

CNCjs MCP Server

MCP server bridging Claude Code to CNCjs for GRBL CNC control (FoxAlien XE Ultra).

Architecture

Claude Code ←stdio/MCP→ cncjs-mcp (Node.js) ←Socket.IO v1→ CNCjs :8000 ←USB Serial→ GRBL

Tools (56 total)

Read-Only / Query (17)

list_serial_ports, get_connection_status, get_machine_state, get_machine_position, get_work_coordinate_offset, get_machine_settings, get_parser_state, get_loaded_gcode, get_job_progress, get_workflow_state, get_feeder_status, list_macros, list_machines, get_alarm_info, get_console_output, get_error_info, analyze_gcode

Connection (2)

connect_to_port, disconnect_port

Control (16)

send_gcode, load_gcode, start_job, pause_job, resume_job, stop_job, home_machine, unlock_machine, jog, set_feed_override, set_spindle_override, set_work_zero, spindle_control, coolant_control, set_wcs, probe_z

Safety (3)

emergency_stop (soft reset 0x18), feed_hold, jog_cancel

Management (1)

run_macro

G-code Generation (4)

generate_gcode_profile — cut 2D shapes (circle, rectangle, custom path) generate_gcode_pocket — clear rectangular or circular pockets generate_gcode_drill — drilling patterns (grid, circle, custom) with peck support generate_gcode_facing — surface facing/leveling

Design File Generation (2)

generate_svg — create SVG files for import into Carveco/Fusion 360 generate_dxf — create DXF R12 files for CAM software import

Fusion 360 Integration (2)

generate_fusion_script — generate Python API scripts for Fusion 360 (sketch, extrude, revolve, fillet, chamfer, export, CAM setup) list_fusion_scripts — list previously generated scripts

FreeCAD Integration (3)

generate_freecad_model — generate Python scripts for headless 3D modeling (box, cylinder, sphere, cone, sketch, extrude, boolean ops, export STEP/STL) generate_freecad_cam — generate CAM toolpath scripts with G-code export (profile, pocket, drill, face operations) list_freecad_scripts — list previously generated FreeCAD scripts

Adobe Illustrator Integration (3)

generate_illustrator_script — generate ExtendScript (.jsx) for vector artwork (rectangle, circle, polygon, star, text, paths, export to SVG/DXF/PDF) generate_illustrator_export_script — batch export current document to SVG/DXF/PDF/EPS with text-to-outlines option list_illustrator_scripts — list previously generated Illustrator scripts

Marketplace & Packaging (3)

package_design — bundle designs into marketplace-ready packages (multi-format files, preview images, README, listing metadata, zip archive) generate_listing_description — generate SEO-optimized listing descriptions for Etsy, Cults3D, or Gumroad convert_design_format — convert between formats (SVG↔DXF, G-code→SVG preview)

Windows PC Setup for CNCjs

  1. Node.js (LTS recommended, v18+) — download from https://nodejs.org

  2. CNCjs — install via npm after Node.js is set up:

    npm install -g cncjs
    

    Or download the desktop app installer from the CNCjs GitHub releases page.

  3. USB/Serial driver for your FoxAlien XE Ultra — likely one of:

    • CH340 driver (most common on FoxAlien boards) — download from the manufacturer site
    • CP210x driver (if it uses a SiLabs chip)
    • Windows 10/11 may auto-install these, but if your board doesn't show up in Device Manager under "Ports (COM & LPT)", install the driver manually

Quick start after install:

cncjs

Then open http://localhost:8000 in your browser. Your FoxAlien will show up as a COM port (e.g., COM3). Select it, set baud rate to 115200, controller type Grbl, and connect.

Optional but recommended:

  • Chrome/Edge — CNCjs web UI works best in Chromium browsers
  • Python (sometimes needed for node-gyp native module builds during npm install)

MCP Server Setup

npm install
npm run build

Register with Claude Code:

claude mcp add cncjs-mcp node /path/to/cncjs-mcp/build/index.js

Environment Variables

  • CNCJS_URL — CNCjs server URL (default: http://localhost:8000)
  • CNCJS_TOKEN — Optional JWT token for CNCjs authentication

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选