MCP Server.exe
@shadowcz007
小智 & Cursor 的 MCP 启动器 - MCP For Cursor&xiaozhi。打包成可执行文件。Turn MCP server into an executable file
概要
What is MCP Server.exe?
MCP Server.exe is a powerful executable server that runs standard Model Context Protocol (MCP) services and provides advanced features including tool chain execution, multi-service management, a pluggable tool system, and flexible deployment. It is designed for developers working with Cursor and xiaozhi.me integrations.
How to use MCP Server.exe?
Run via CLI using npx mcp_exe --mcp-config ./examples/mcp.json, with the packaged executable directly, or in WebSocket mode using --ws flag. It supports SSE, stdio, and WebSocket transport modes and auto-reloads on configuration file changes. Configuration is done through JSON (--mcp-config) or JavaScript (--mcp-js) files.
Key features of MCP Server.exe
- Tool chain execution for complex automation workflows
- Multiple MCP services with SSE and stdio modes
- Pluggable custom tool system via JavaScript
- Auto reload on config file changes
- Cronjob mode with desktop, email, and ntfy notifications
- Embedded integration as a standalone process
Use cases of MCP Server.exe
- Connecting MCP services to xiaozhi.me via WebSocket
- Combining multiple MCP services into one unified server
- Automating multi-step workflows with tool chains
- Running scheduled tasks with cronjobs and notifications
- Integrating MCP into existing applications as a subprocess
FAQ from MCP Server.exe
What is MCP Server.exe used for?
It is an executable MCP server that runs standard MCP services and adds advanced features like tool chains, multi-service combination, custom plugins, and cronjobs.
What transport modes does it support?
It supports SSE, stdio, and WebSocket modes. The default transport is SSE unless --ws or --transport stdio is specified.
How do I configure multiple MCP services?
Use a --mcp-config JSON file with the same format as Cursor's mcp.json, specifying SSE URLs or stdio commands for each service.
Does it support auto reload?
Yes, it listens for changes in --mcp-config and --mcp-js files and automatically reloads the server to apply the changes.
Can I use it as a library?
Yes, it exports McpRouterServer for programmatic use in Node.js (CommonJS and TypeScript/ESM).