MCP.so
登录

MCP TypeScript Server Starter

@ralf-boltshauser

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

ralf-boltshauser

关于 MCP TypeScript Server Starter

暂无概览

MCP TypeScript Server Starter 配置

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

{
  "mcpServers": {
    "mcp-typescript-server-starter": {
      "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 includes a simple echo server that demonstrates tools, resources, and prompts, and supports both STDIO and SSE communication modes.

How to use MCP TypeScript Server Starter?

Clone the repository, install dependencies with pnpm install, and run pnpm dev to start the development server with an inspector at http://localhost:6274. To switch between STDIO and SSE modes, comment/uncomment the corresponding code blocks in src/index.ts. Deploy with Docker or 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 implementations
  • Supports STDIO (local) and SSE (remote) communication
  • Built-in web inspector for testing and debugging
  • Hot-reloading development server
  • TypeScript type safety and modern tooling
  • Easy deployment to Coolify and other platforms

Use cases of MCP TypeScript Server Starter

  • Quickly prototype and test an MCP server locally
  • Integrate an echo server with Cursor or Claude Desktop
  • Deploy a production‑ready MCP server via SSE for remote access
  • Use as a reference for building custom tools, resources, or prompts
  • Experiment with MCP debugging and environment variable handling

常见问题

1

What is the difference between STDIO and SSE modes?

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

2

What are the prerequisites?

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

3

How do I test the server locally?

Run `pnpm dev`, open the inspector at `http://localhost:6274`, click “Connect”, go to “Tools”, “List Tools”, select “echo”, write a message, and submit.

4

How do I deploy to Coolify?

Disable GZIP compression, ensure port 3001 is exposed, and set the domain with `:3001` suffix (e.g. `https://subdomain.yourdomain.com:3001`). Then connect clients with `npx -y mcp-remote https://subdomain.yourdomain.com/sse`.

5

How do I add custom tools, resources, or prompts?

Edit `src/index.ts` — the file contains commented examples for adding tools (functions your AI can call), resources (data your AI can access), and prompts (templates for AI interactions).

评论

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