MCP Server Starter

Integrations

  • Integrates Biome for code linting and formatting, ensuring consistent code quality in the MCP server implementation.

  • Utilizes Bun for runtime execution and development environment, providing fast testing and execution capabilities for the MCP server.

  • Supports publishing the MCP server as an npm package, allowing for easy distribution and installation in Claude Desktop environments.

MCP Server Starter

Eine produktionsbereite Startervorlage zum Erstellen von Model Context Protocol (MCP)-Servern mit TypeScript.

🚀 Schnellstart

  1. Klonen Sie das Repository
  2. Installieren Sie Abhängigkeiten:
    bun install

✨ Hauptmerkmale

  • Bun für schnelles Testen und Entwickeln
  • Biom zum Lintisieren und Formatieren
  • Automatisiertes Versionsmanagement mit Standard-Version
  • Saubere, wartbare Projektstruktur

📂 Projektstruktur

mcp-starter/ ├── src/ │ ├── tools/ # MCP tools implementation │ ├── utils/ # Shared utilities │ ├── main.ts # Server entry point │ └── types.ts # Shared type definitions ├── tests/ # Test files ├── biome.json # Linting configuration ├── tsconfig.json # TypeScript configuration └── package.json # Project dependencies

⚙️ Konfiguration

Erstellen neuer Tools

Das Projekt enthält ein Skript zur Erstellung neuer MCP-Tools:

bun run scripts/create-tool.ts <tool-name>

Dies wird:

  1. Erstellen Sie ein neues Tool-Verzeichnis unter src/tools/<tool-name>
  2. Generieren Sie die grundlegende Werkzeugstruktur, einschließlich:
    • index.ts (Hauptimplementierung)
    • schema.ts (JSON-Schema für Tool-Parameter)
    • test.ts (Testdatei)
  3. Aktualisieren Sie die Indexdatei des Tools, um das neue Tool zu exportieren

Beispiel:

bun run scripts/create-tool.ts weather

🛠️ Entwicklung

  • Tests ausführen : bun test
  • Formatcode : bun run format
  • Lint-Code : bun run lint
  • Build-Projekt : bun run build

So fügen Sie Ihren Entwicklungs-MCP-Server zu Claude Desktop hinzu:

  1. Erstellen Sie das Projekt:
    bun run build
  2. Fügen Sie Ihrer Claude Desktop-Konfiguration hinzu:
    // You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "node", "args": ["/path/to/your/project/dist/main.js", "some_argument"] } } }

📜 Versionsverwaltung

Dieses Projekt verwendet die Standardversion für die automatisierte Versionsverwaltung. Führen Sie bun run release aus, um eine neue Version zu erstellen.

Commit-Nachrichtenformat

  • feat : Neue Funktion (verbessert Nebenversion)
  • fix : Fehlerbehebung (verbessert die Patch-Version)
  • BREAKING CHANGE : Breaking Change (erhöht die Hauptversion)

📦 Veröffentlichen auf npm

  1. Stellen Sie sicher, dass Sie bei npm angemeldet sind:
    npm login
  2. Erstellen Sie das Projekt:
    bun run build
  3. Veröffentlichen Sie das Paket:
    npm publish

Denken Sie daran, die Versionsnummer mit bun run release zu aktualisieren, bevor Sie neue Versionen veröffentlichen.

Installation von npm (nach der Veröffentlichung)

Fügen Sie Ihrer Claude Desktop-Konfiguration hinzu:

// You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "npx", "args": ["-y", "your-package-name", "some_argument"] } } }

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Eine produktionsreife Vorlage zum Erstellen von Model Context Protocol-Servern mit TypeScript, mit Bun für schnelle Entwicklung, Biome für Lint-Tests und einer organisierten Struktur zum Erstellen von MCP-Tools.

  1. 🚀 Schnellstart
    1. ✨ Hauptmerkmale
      1. 📂 Projektstruktur
        1. ⚙️ Konfiguration
          1. Erstellen neuer Tools
        2. 🛠️ Entwicklung
          1. 📜 Versionsverwaltung
            1. Commit-Nachrichtenformat
          2. 📦 Veröffentlichen auf npm
            1. Installation von npm (nach der Veröffentlichung)

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.
                Last updated -
                1
                7
                12
                JavaScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                A production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.
                Last updated -
                1
                7
                JavaScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                A TypeScript-based template for building Model Context Protocol servers, featuring fast testing, automated version management, and a clean structure for MCP tool implementations.
                Last updated -
                1
                7
                2
                TypeScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                A TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.
                Last updated -
                67
                TypeScript
                • Apple

              View all related MCP servers

              ID: hzy4o0tbta