MCP Server Boilerplate 88293eaa

MCP运维云端

提供方 cds-id

运维云端 未标注 OAuth 授权 社区 / 第三方

一个基于TypeScript和Express的Model Context Protocol (MCP)服务器模板,用于为LLMs提供标准化的上下文。

一句话选型结论

按资料字段整理

MCP Server Boilerplate 88293eaa 属于运维云端类 MCP 服务器,传输方式未标注,OAuth 授权,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式未标注 鉴权OAuth 授权 部署方式未标注
GitHub 星标 1 仓库热度,无公开仓库时显示未标注
工具数 2 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量2暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

LLM上下文TypeScript本地部署服务器模板Express标准化协议

安装与配置

未标注 OAuth 授权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 2 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 2 个工具,职责相对集中,接入后不容易误操作。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Server Boilerplate 88293eaa当前 2 未标注 未标注 无 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方cds-id上游标注的维护方 cds-id
分类运维云端本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

6.7 KB
来自项目仓库与上游目录的原文,未做删改

MCP Server Boilerplate

A boilerplate server implementation for the Model Context Protocol (MCP), built with TypeScript and Express.

Table of Contents

  • Overview
  • Project Structure
  • Getting Started
  • Prerequisites
  • Installation
  • Environment Variables
  • Running the Server
  • HTTP Server
  • Stdio Mode
  • Resources
  • Tools
  • Prompts
  • Extending the Server
  • Adding Resources
  • Adding Tools
  • Adding Prompts
  • Testing and Debugging
  • License

Overview

This project implements a server that follows the Model Context Protocol (MCP), which allows applications to provide context for LLMs in a standardized way. It includes:

  • A fully configured MCP server with HTTP and stdio transport options
  • Sample resources, tools, and prompts to demonstrate key functionality
  • TypeScript support for type safety and better developer experience
  • Express integration for the HTTP transport layer

Project Structure```

mcp-server-boilerplate/
├── .env # Environment variables
├── .env.example # Example environment variables
├── .gitignore # Git ignore file
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── src/
│ ├── index.ts # Main HTTP server entry point
│ ├── stdio.ts # Stdio server entry point
│ ├── resources/ # MCP resources
│ │ ├── index.ts # Resource registration
│ │ ├── infoResource.ts # Static info resource
│ │ └── greetingResource.ts # Dynamic greeting resource
│ ├── tools/ # MCP tools
│ │ ├── index.ts # Tool registration
│ │ ├── calculatorTool.ts # Sample calculator tool
│ │ └── timestampTool.ts # Sample timestamp tool
│ └── prompts/ # MCP prompts
│ ├── index.ts # Prompt registration
│ ├── greetingPrompt.ts # Sample greeting prompt
│ └── analyzeDataPrompt.ts # Sample data analysis prompt
└── dist/ # Compiled JavaScript output


## Getting Started

### Prerequisites

- Node.js (v18 or later)
- npm or yarn

### Installation

Clone the repository and install dependencies:```bash
git clone https://github.com/yourusername/mcp-server-boilerplate.git
cd mcp-server-boilerplate
npm install

Environment Variables

Copy the example environment file and modify as needed:```bash
cp .env.example .env


Available environment variables:

- `PORT`: The port for the HTTP server (default: 3000)
- `NODE_ENV`: Environment mode (development, production)
- OAuth settings (if needed)

## Running the Server

### HTTP Server

Build and start the HTTP server:```bash
npm run build
npm start

For development with auto-restart:```bash
npm run dev


The server will be available at `http://localhost:3000/mcp` (or the port specified in your .env file).

### Stdio Mode

To run the server in stdio mode (for command-line tools):```bash
npm run start:stdio

For development with auto-restart:```bash
npm run dev:stdio


## Resources

The boilerplate includes these example resources:

1. **Static Info Resource**: `info://server`

   - Provides basic information about the server

2. **Dynamic Greeting Resource**: `greeting://{name}`
   - Generates a personalized greeting with the provided name parameter

To access resources:

- Through the MCP protocol
- Using an MCP client library

## Tools

The boilerplate includes these example tools:

1. **Calculator**: Performs basic arithmetic operations

   - Parameters:
     - `operation`: Operation to perform (add, subtract, multiply, divide)
     - `a`: First number
     - `b`: Second number

2. **Timestamp**: Provides the current time in various formats
   - Parameters:
     - `format`: Output format (iso, unix, readable)

## Prompts

The boilerplate includes these example prompts:

1. **Greeting**: Creates a personalized greeting prompt

   - Parameters:
     - `name`: Name to greet
     - `formal`: Whether to use formal greeting style (optional)

2. **Analyze Data**: Creates a prompt for data analysis
   - Parameters:
     - `data`: The data to analyze
     - `format`: Data format (json, csv, text)
     - `instructions`: Additional analysis instructions (optional)

## Extending the Server

### Adding Resources

To add a new resource:

1. Create a new file in `src/resources/` (e.g., `myResource.ts`)
2. Implement your resource handler
3. Register it in `src/resources/index.ts`

Example:```typescript
// myResource.ts
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';

export function myResource(server: McpServer): void {
  server.resource('my-resource', 'my-resource://path', async uri => ({
    contents: [
      {
        uri: uri.href,
        text: 'My resource content',
      },
    ],
  }));
}

// Then add to resources/index.ts
import { myResource } from './myResource.js';

export function registerResources(server: McpServer): void {
  // ...existing resources
  myResource(server);
}

Adding Tools

To add a new tool:

  1. Create a new file in src/tools/ (e.g., myTool.ts)
  2. Implement your tool handler
  3. Register it in src/tools/index.ts

Example:```typescript
// myTool.ts
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';

export function myTool(server: McpServer): void {
server.tool('my-tool', { param: z.string() }, async ({ param }) => ({
content: [
{
type: 'text',
text: Processed: ${param},
},
],
}));
}

// Then add to tools/index.ts
import { myTool } from './myTool.js';

export function registerTools(server: McpServer): void {
// ...existing tools
myTool(server);
}


### Adding Prompts

To add a new prompt:

1. Create a new file in `src/prompts/` (e.g., `myPrompt.ts`)
2. Implement your prompt handler
3. Register it in `src/prompts/index.ts`

Example:```typescript
// myPrompt.ts
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';

export function myPrompt(server: McpServer): void {
  server.prompt('my-prompt', { topic: z.string() }, ({ topic }) => ({
    messages: [
      {
        role: 'user',
        content: {
          type: 'text',
          text: `Please explain ${topic} in simple terms.`,
        },
      },
    ],
  }));
}

// Then add to prompts/index.ts
import { myPrompt } from './myPrompt.js';

export function registerPrompts(server: McpServer): void {
  // ...existing prompts
  myPrompt(server);
}

Testing and Debugging

To test your MCP server, you can use:

  • The MCP Inspector tool
  • MCP client libraries
  • Direct HTTP requests (for debugging)

License

This project is licensed under the MIT License - see the LICENSE file for details.

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
MCP Server Boilerplate 88293eaa 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

MCP Server Boilerplate 88293eaa 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

MCP Server Boilerplate 88293eaa 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Server Boilerplate 88293eaa 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

MCP Server Boilerplate 88293eaa 能提供哪些能力?

资料显示约 2 个工具;能力标签包括 标准化协议、TypeScript、服务器模板。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。