Skip to main content
Glama

Simple TypeScript MCP Server

by jasonkneen

Simple TypeScript MCP Server

A simple TypeScript template for building Model Context Protocol (MCP) servers with basic CRUD operations. This template provides a foundation for creating MCP tools that return JSON responses.

Features

  • Simple notes API with CRUD operations
  • In-memory data storage
  • TypeScript implementation
  • JSON responses
  • Ready for testing with Vitest

Setup

npm install

Running the server

npm run dev

Building for production

npm run build npm start

Available Tools

This template includes the following MCP tools:

  • getNote: Retrieve a note by ID
  • getAllNotes: Get all notes
  • createNote: Create a new note
  • updateNote: Update an existing note
  • deleteNote: Delete a note by ID

Testing

Run the tests with:

npm test

Or watch mode:

npm run test:watch

Customizing

You can use this template as a starting point for your own MCP server by modifying the tools in src/server.ts to fit your needs.

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

hybrid server

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

A TypeScript template for building Model Context Protocol servers that implements basic note-taking CRUD operations with JSON responses.

  1. Features
    1. Setup
      1. Running the server
        1. Building for production
          1. Available Tools
            1. Testing
              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
                  676
                  34
                  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
                  676
                  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
                  4
                  TypeScript
                • 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
                  676
                  4
                  TypeScript
                  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