MCP.so
登录

MCP TypeScript Server Starter

@ralf-boltshauser

基本信息

分类

开发工具

许可证

MIT license

传输方式

stdio

作者

ralf-boltshauser

关于 MCP TypeScript Server Starter

暂无概览

MCP TypeScript Server Starter 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "sbb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://subdomain.yourdomain.com/sse"
      ]
    }
  }
}

MCP TypeScript Server Starter 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP TypeScript Server Starter?

A starter project for building Model Context Protocol (MCP) servers in TypeScript. It provides a simple echo server implementation that demonstrates core MCP features such as tools, resources, and prompts.

How to use MCP TypeScript Server Starter?

Clone the repository, install dependencies with pnpm install, then run pnpm dev to start the development server and inspector. To switch between STDIO and SSE modes, comment or uncomment the corresponding code blocks in src/index.ts. For STDIO mode, build with pnpm build and run node dist/index.cjs; for SSE mode, deploy using Docker or platforms like Coolify and connect via npx -y mcp-remote https://your-domain.com/sse.

Key features of MCP TypeScript Server Starter

  • Simple echo server with tool, resource, and prompt examples
  • TypeScript support with hot reloading in development
  • Built‑in inspector for testing and debugging
  • Supports both STDIO and SSE communication modes
  • Ready for local development and production deployment
  • Starter code to add custom tools, resources, and prompts

Use cases of MCP TypeScript Server Starter

  • Rapid prototyping of MCP servers with an example echo server
  • Local testing of MCP capabilities using the inspector
  • Deploying a scalable remote MCP server via SSE
  • Integrating with MCP clients like Claude Desktop or Cursor

常见问题

1

What are the prerequisites?

Node.js v16 or later and pnpm (recommended) are required.

2

Which communication modes are available and when should I use them?

STDIO mode is ideal for local development and direct process communication with tools like Claude Desktop. SSE mode is better for production deployments requiring remote access and is used with HTTP/SSE endpoints.

3

How do I deploy the server to production?

You can deploy using Docker or platforms like Coolify. In Coolify’s advanced settings, disable GZIP compression (required for SSE) and expose port 3001 by setting the domain as `https://your-domain.com:3001`. The server listens on all interfaces by default.

4

How can I debug my server during development?

Use the built‑in inspector at `http://localhost:6274`. You can also send debug messages from your code with `server.server.sendLoggingMessage`, which appears in the inspector.

5

Where do I set environment variables for the server?

Use a `.env` file for local development (add it to `.gitignore`) or set them in your deployment platform (e.g., Coolify). Access them in code via `process.env`. Docker Compose loads `.env` automatically.

评论

开发工具 分类下的更多 MCP 服务器