mcp-template

mcp-template

3.4

The MCP-Template is a versatile Model Context Protocol server designed to facilitate communication between different platforms using SSE and stdio.

The MCP-Template is a robust server framework that leverages the Model Context Protocol (MCP) to enable seamless communication between various platforms. It supports both Server-Sent Events (SSE) and standard input/output (stdio) modes, providing flexibility in deployment and integration. The template is designed to be easily installed and configured, making it accessible for developers looking to implement MCP in their applications. With the ability to start an inspector for monitoring and debugging, the MCP-Template ensures that developers can maintain control over their server operations. The template also supports environment variable configuration, allowing for customization and secure handling of sensitive information.

Features

  • Supports both SSE and stdio modes for flexible communication.
  • Easy installation via npx for quick setup.
  • Includes an inspector tool for monitoring and debugging.
  • Environment variable configuration for secure and customizable setups.
  • Compatible with various platforms for broad applicability.

Usage with Different Platforms

Start as SSE

shell
node dist/mcp.js sse

Start as stdio

shell
node dist/mcp.js stdio

Install by npx

shell
npx -y git+https://github.com/v1xingyue/mcp-template.git

Start inspector

shell
npx @modelcontextprotocol/inspector

MCP JSON


{
  "command":"npx",
  "args": ["-y","@v1xingyue/mcp-template"],
  "env": {
    "PROXY": "http://localhost:7890",
    "COINGECKO_TOKEN": "",
    "SUI_PRIVATE_KEY":"suiprivkey1qy...."
  }
}