Express MCP Server

MCP运维云端

提供方 betegon

运维云端 未标注 无需鉴权 社区 / 第三方

该项目展示了如何使用Express.js实现MCP服务器,并集成Sentry监控和性能跟踪,提供完整检测、部分检测和SSE传输的示例。

一句话选型结论

按资料字段整理

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

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

工具与能力

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

能力标签

适用场景

Sentry监控JavaScript本地部署性能跟踪MCP服务器Express.jsSSE传输

安装与配置

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

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

  2. 2
    安装服务

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

  3. 3
    写入客户端配置

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

  4. 4
    验证是否可用

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

典型使用场景

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

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

部署与发布

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

监控与告警

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

选择建议

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

值得选的地方

  • 资料标注 6 个工具,职责相对集中,接入后不容易误操作。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 版本更新与行为细节以官方仓库为准。

更适合

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

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Express MCP Server当前 6 未标注 未标注 无 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

服务器档案

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

详细介绍

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

Express MCP Auto-Instrumentation Examples

This repository contains three example implementations of MCP (Model Context Protocol) servers using Express.js, demonstrating different approaches to Sentry instrumentation and transport mechanisms.

Overview

The project showcases how to integrate Sentry monitoring and performance tracking with MCP servers, providing examples with full instrumentation, partial instrumentation, and SSE transport.

Installation```bash

Clone the repository

git clone <repository-url>
cd express-mcp-auto-instrumentation

Install dependencies

yarn install


## The Three Servers

### 1. Streamable HTTP Server with Full Instrumentation
**File:** `mcp-express-streamable-http.mjs`
**Port:** 3005

This is the most feature-rich implementation with complete Sentry instrumentation.

**Features:**
- Full Sentry error tracking and performance monitoring via `wrapMcpServerWithSentry`
- Supports both POST (JSON-RPC) and GET (SSE) endpoints
- Stateless design (fresh server instance per request)
- Advanced tools:
  - `add` - Basic math with progress notifications
  - `add-dynamic-tool` - Create new tools on the fly
  - `create-resource` - Create new resources dynamically
  - `update-resource` - Update existing resources
  - `log-message` - Send custom log messages
  - `add-dynamic-prompt` - Create prompts dynamically
- Resources and prompts support
- Comprehensive logging system

**Run:**```bash
node mcp-express-streamable-http.mjs

2. SSE Server with Instrumentation

File: mcp-express-sse.mjs
Port: 3006

A simpler implementation using Server-Sent Events (SSE) transport with Sentry instrumentation.

Features:
- Full Sentry instrumentation via wrapMcpServerWithSentry
- SSE-based transport exclusively
- Session management (maintains state between requests)
- Basic add tool for mathematical operations
- Separate endpoints for SSE stream (/mcp) and messages (/messages)

Run:```bash
node mcp-express-sse.mjs


### 3. Streamable HTTP Server without Wrapper Instrumentation
**File:** `mcp-express-no-instrumentation.js`
**Port:** 3005

A minimal implementation that imports Sentry but doesn&#x27;t use the MCP-specific wrapper.

**Features:**
- Imports Sentry instrumentation but doesn&#x27;t wrap the MCP server
- Uses older `registerTool` API
- Stateless design
- Basic `add` tool that includes a weather API call (for testing child spans)
- Demonstrates baseline MCP functionality

**Run:**```bash
node mcp-express-no-instrumentation.js

API Usage

Basic Tool Call Example

POST `/mcp`json { &quot;jsonrpc&quot;: &quot;2.0&quot;, &quot;method&quot;: &quot;tools/call&quot;, &quot;params&quot;: { &quot;name&quot;: &quot;add&quot;, &quot;arguments&quot;: { &quot;a&quot;: 5, &quot;b&quot;: 3 } }, &quot;id&quot;: 1 }

SSE Connection (Server 2 only)

GET /mcp - Establishes SSE stream
POST /messages?sessionId={sessionId} - Send messages to established session

Test Sentry Integration

All servers include a test endpoint:

GET /sentry-error - Triggers a test error for Sentry verification

Key Differences

Feature Streamable HTTP (Full) SSE Server No Wrapper
Sentry Wrapper ✅ wrapMcpServerWithSentry ✅ wrapMcpServerWithSentry ❌ Basic import only
Transport StreamableHTTP SSE StreamableHTTP
Tools 6 advanced tools 1 basic tool 1 basic tool
Resources ✅ ❌ ❌
Prompts ✅ ❌ ❌
State Stateless Stateful Stateless
API Style Modern tool() Modern tool() Legacy registerTool()

Development Notes

  • The instrument.mjs file must be imported using Node's --import flag for proper Sentry initialization
  • All servers demonstrate different aspects of MCP server implementation
  • The full instrumentation server (streamable-http) serves as the most comprehensive example
  • SSE server shows how to maintain session state across requests
  • The no-wrapper server demonstrates baseline functionality without MCP-specific Sentry features

License

[Add your license here]

常见问题

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

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

Express MCP Server 怎么在客户端里配置?

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

Express MCP Server 收费吗?

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

Express MCP Server 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Express MCP Server 能提供哪些能力?

资料显示约 6 个工具;能力标签包括 JavaScript、SSE传输、云端部署。具体工具清单以官方文档为准。

热门专题

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

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