Back to MCP directory
publicPublicdnsLocal runtime

MCPJsServerSample

使用Node.js 16运行服务器脚本

article

README

🚀 使用 Node.js 运行脚本

本项目借助 Node.js 来运行特定脚本,为你提供便捷的操作体验。

🚀 快速开始

环境要求

使用 Node.js 版本 16。

运行脚本

运行 server.js 脚本。你可以在命令行中执行以下命令:

node server.js
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client