MCP.so
登录

MCP Server Starter

@dx-zero

关于 MCP Server Starter

A super simple Starter to build your own MCP Server

基本信息

分类

开发工具

许可证

MIT

运行时

node

传输方式

stdio

发布者

dx-zero

配置

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

{
  "mcpServers": {
    "mcp-starter-dx-zero": {
      "command": "node",
      "args": [
        "./bin/cli.mjs",
        "--http",
        "--port",
        "4200"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server Starter?

MCP Server Starter is a basic project structure for building your own MCP (Model Context Protocol) server. It enables running local tools with Cursor, Claude, and other MCP-compatible clients. The starter supports multiple transport protocols—stdio, Streamable HTTP, and SSE—and is written in TypeScript. It is intended for developers who want to create custom local tooling that integrates with AI assistants.

How to use MCP Server Starter?

After ensuring Node.js is installed, clone or set up the starter project. You then configure an MCP-compatible client (e.g., Cursor) by adding a JSON snippet to .cursor/mcp.json that points to the server’s CLI. For local testing with stdio, run node ./bin/cli.mjs --stdio; for Streamable HTTP, run node ./bin/cli.mjs --http --port 4200. The server can also be published to npm and used via npx.

Features of MCP Server Starter

  • Supports stdio, Streamable HTTP, and SSE transport protocols.
  • Minimal setup for quick start with a basic server.
  • Includes example .cursor/mcp.json configuration for Cursor AI integration.
  • Written in TypeScript for type safety.

Use cases of MCP Server Starter

  • Build custom local tools for use with Cursor or Claude.
  • Test and debug an MCP server locally using stdio.
  • Deploy a remote MCP server via Streamable HTTP.
  • Scaffold a new MCP server for eventual npm package publishing.

FAQ from MCP Server Starter

Which transport should I use?

Use stdio for local setups and Streamable HTTP for remote usage. Streamable HTTP is not supported in Cursor yet. SSE is deprecated.

What are the prerequisites?

Node.js and an MCP-compatible client like Cursor are required.

How do I run the server with Streamable HTTP?

Start the server with node ./bin/cli.mjs --http --port 4200 (port defaults to 3000). Then configure your client with a url pointing to http://localhost:4200/mcp.

Can I publish my own MCP server package?

The starter provides a structure to eventually publish packages; this feature is planned but not yet implemented.

How do I debug my MCP server?

Use the npm run dev-http command (or npm run dev-sse for the deprecated SSE) to launch the MCP Inspector for debugging.

评论

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