SuperAPI AI Directory

mcp-server-js

🎖️ 📇 ☁️ - Run LLM-generated code in a YepCode sandbox and create custom MCP tools in JavaScript or Python with npm and PyPI packages.

Open website

About this tool

Purpose

YepCode MCP Server is an MCP (Model Context Protocol) server used to let AI platforms interact with YepCode's infrastructure. It can expose YepCode Processes as tools callable by AI platforms, thereby securely connecting AI assistants to YepCode workflows, APIs, and automation tasks. It is also suitable for building dynamic MCP tool servers with YepCode.

Main Capabilities

  • Convert YepCode Processes into tools that AI can call directly (zero configuration).
  • Execute large language model-generated code in YepCode's isolated, production-grade environment.
  • Implement tools in Python or Node.js, supporting mixing implementations in multiple languages within the same MCP server.
  • Each tool can define its own parameter structure via JSON Schema (types, descriptions, required fields, enums, default values, etc.).
  • Provides API management capabilities for the YepCode workspace, covering Processes, schedules, variables, storage, execution records, modules, and more.
  • Supports securing tool access via OAuth, API tokens, or existing YepCode credentials.
  • Can run locally or be deployed on your own infrastructure (NPX, Docker, or custom deployment).
  • Compatible with any AI platform that supports the Model Context Protocol, such as Cursor and Claude Desktop.
  • A hosted MCP server is also available, requiring no local installation, with the connection address at https://cloud.yepcode.io/mcp。

How to Use

  1. Register for YepCode Cloud and create an API token in Settings > API credentials.
  2. Make sure Node.js is installed (version 18 or higher), then start it using the corresponding configuration method.
  3. You can run the local server via NPX, Docker (building a container image), or custom deployment, and integrate it into AI platforms such as Cursor or Claude Desktop.
  4. For debugging, because the MCP server communicates via stdio, the official recommendation is to use MCP Inspector for debugging. After running it, you can access the debugging tool directly in the browser.

Tool Enablement and Configuration

You can use the environment variable YEPCODE_MCP_TOOLS(a comma-separated list) to control which tools are enabled. The values include built-in tool categories and Process tags:

Built-in tool categories:

  • run_code: Enables the code execution tool.
  • yc_api: Enables all basic API management tools (Processes, schedules, variables, storage, executions, modules).
  • yc_api_full: Enables all API management tools, including version-related tools.
  • Any specific API tool name (for example, execute_process_sync、get_execution , etc.).
  • Any tag used in Processes (for example, mcp-tool、core、automation , etc.).

After specifying a Process tag, all Processes with that tag will be exposed as independent MCP tools. Process tools are named after the Process slug (if the name exceeds 60 characters, it is prefixed with yc_ plus the Process ID). If this environment variable is not specified, all built-in tools are enabled by default, but no Process tools are exposed.

Example scenarios:

  • YEPCODE_MCP_TOOLS=run_code,yc_api: Enables the built-in code execution and basic API management tools.
  • YEPCODE_MCP_TOOLS=run_code,yc_api_full: Enables the built-in code execution and all API management tools (including version management).
  • YEPCODE_MCP_TOOLS=core,automation: Exposes only Processes with the "core" or "automation" tags as tools.
  • YEPCODE_MCP_TOOLS=run_code,yc_api,core: Enables built-in tools, plus all Processes with the "core" tag.

You can also pass the following options via the environment variable YEPCODE_MCP_OPTIONS(a comma-separated list):

  • runCodeCleanup: Skips run_code cleanup. By default, the run_code source code is removed after execution; if you want to keep it for auditing, you can use this option.
  • skipCodingRules: Skip including coding rules in the run_code tool definition. By default, the JavaScript and Python coding rules from the YepCode documentation are included in the tool schema to guide AI code generation; use this option if you want to speed up tool initialization or reduce the tool definition size.

API Management Tool Capabilities

yc_api and yc_api_full categories provide comprehensive API access to the YepCode workspace:

  • Process management: get_processes, create_process, get_process, update_process, delete_process, get_process_versions (requires yc_api_full), execute_process_async, execute_process_sync, schedule_process.
  • Schedule management: get_schedules, get_schedule, pause_schedule, resume_schedule, delete_schedule, update_schedule.
  • Variable management: get_variables, create_variable, update_variable, delete_variable.
  • Storage management: get_storage_objects, upload_storage_object, download_storage_object, delete_storage_object.
  • Execution record management: get_executions, get_execution, kill_execution, rerun_execution, get_execution_logs.
  • Module management: get_modules, create_module, get_module, delete_module, get_module_versions (requires yc_api_full), get_module_version (requires yc_api_full), delete_module_version (requires yc_api_full), get_module_aliases (requires yc_api_full).

In addition, capabilities such as environment management (setting/removing YepCode workspace environment variables) and storage management (uploading, listing, downloading, deleting files) are also provided. Files in storage can be accessed during code execution through the yepcode.storage helper method.

Use Cases

  • Teams that want to connect existing YepCode workflows, APIs, and automation tasks to AI assistants.
  • Need to securely execute large language model-generated code through an AI platform.
  • Projects that need to mix Python and Node.js tool implementations in the same MCP server.
  • Users of AI platforms that support MCP, such as Cursor and Claude Desktop.

Limitations and Security Notes

  • Requires a YepCode Cloud account and API token.
  • Running locally requires Node.js 18 or later.
  • By default, the run_code source code is removed after execution (can be retained via an option).
  • By default, no process tools are exposed; process tags must be explicitly specified.
  • The project uses the MIT license.

Pricing, specific charging methods, etc. are not provided in the materials.