Skip to main content
Glama

Simple TypeScript MCP Server

by jasonkneen

Einfacher TypeScript MCP-Server

Eine einfache TypeScript-Vorlage zum Erstellen von Model Context Protocol (MCP)-Servern mit grundlegenden CRUD-Operationen. Diese Vorlage bietet die Grundlage für die Erstellung von MCP-Tools, die JSON-Antworten zurückgeben.

Merkmale

  • Einfache Notizen-API mit CRUD-Operationen
  • In-Memory-Datenspeicherung
  • TypeScript-Implementierung
  • JSON-Antworten
  • Bereit zum Testen mit Vitest

Aufstellen

npm install

Ausführen des Servers

npm run dev

Bauen für die Produktion

npm run build npm start

Verfügbare Tools

Diese Vorlage enthält die folgenden MCP-Tools:

  • getNote : Ruft eine Notiz nach ID ab
  • getAllNotes : Alle Notizen abrufen
  • createNote : Erstelle eine neue Notiz
  • updateNote : Aktualisieren Sie eine vorhandene Notiz
  • deleteNote : Löscht eine Notiz anhand der ID

Testen

Führen Sie die Tests mit folgendem aus:

npm test

Oder im Beobachtungsmodus:

npm run test:watch

Customizing

Sie können diese Vorlage als Ausgangspunkt für Ihren eigenen MCP-Server verwenden, indem Sie die Tools in src/server.ts an Ihre Anforderungen anpassen.

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Eine TypeScript-Vorlage zum Erstellen von Model Context Protocol-Servern, die grundlegende CRUD-Operationen zum Notieren mit JSON-Antworten implementiert.

  1. Merkmale
    1. Aufstellen
      1. Ausführen des Servers
        1. Bauen für die Produktion
          1. Verfügbare Tools
            1. Testen
              1. Customizing

                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
                  16
                  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
                  16
                  JavaScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.
                  Last updated -
                  1
                  2
                  TypeScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that extracts embedded data (such as i18n translations or key/value configurations) from TypeScript/JavaScript source code into structured JSON configuration files.
                  Last updated -
                  2
                  14
                  2
                  JavaScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/jasonkneen/mcp-server-ts'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server