MCP Server Template (

by bsmi021

326 downloads
Not rated
GitHub

About

This template helps you quickly bootstrap a new Model Context Protocol (MCP) server project based on recommended practices.

Details

Author
bsmi021
Downloads
326
Categories
Developer Tools

- Bootstrap a new MCP server project in one command.
- Prompts for project details (name, description) during initialization.
- Predefined project structure (src/config, src/services, src/tools, etc.).
- Includes TypeScript, ESLint, Prettier, and Husky configuration.
- Step-by-step guide for adding new tools and services.
- Development mode with ts-node and nodemon for auto-reloading.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server Template (
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Run npx create-mcp-server my-new-mcp-server (or the locally linked version) to create a new project directory. After creation, change into the new directory, run npm install, then use npm run dev to start the development server with auto-reloading.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server template (": {
            "custom-mcp-template": {
                "command": "npx",
                "args": [
                    "create-mcp-server",
                    "my-new-mcp-server"
                ]
            }
        }
    }
}

McpServers

{
    "custom-mcp-template": {
        "command": "npx",
        "args": [
            "create-mcp-server",
            "my-new-mcp-server"
        ]
    }
}

MCP Server Template (create-mcp-server)

This template helps you quickly bootstrap a new Model Context Protocol (MCP) server project based on recommended practices.

Usage (Creating a New Server)

To create a new MCP server project named my-new-mcp-server, run the following command using npx:

npx create-mcp-server my-new-mcp-server

(Note: If you haven't published this package to npm, you might need to run npm link in this template directory first, then use create-mcp-server my-new-mcp-server)

This will:

1. Create a new directory named my-new-mcp-server.
2. Prompt you for project details (name, description).
3. Copy the template files (src, docs, config files, etc.) into the new directory.
4. Update the package.json with your project details.

After initialization, follow the instructions provided in the terminal:

```bash
cd my-new-mcp-server
npm install

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.