Skip to main content
Glama

Simple TypeScript MCP Server

by jasonkneen

简单的 TypeScript MCP 服务器

一个简单的 TypeScript 模板,用于构建具有基本 CRUD 操作的模型上下文协议 (MCP) 服务器。此模板为创建返回 JSON 响应的 MCP 工具奠定了基础。

特征

  • 具有 CRUD 操作的简单注释 API
  • 内存数据存储
  • TypeScript 实现
  • JSON 响应
  • 准备使用 Vitest 进行测试

设置

npm install

运行服务器

npm run dev

生产环境构建

npm run build npm start

可用工具

该模板包含以下 MCP 工具:

  • getNote :通过 ID 检索注释
  • getAllNotes :获取所有笔记
  • createNote :创建新笔记
  • updateNote :更新现有注释
  • deleteNote :通过 ID 删除注释

测试

使用以下命令运行测试:

npm test

或者观看模式:

npm run test:watch

定制

您可以使用此模板作为您自己的 MCP 服务器的起点,通过修改src/server.ts中的工具来满足您的需求。

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.

用于构建模型上下文协议服务器的 TypeScript 模板,使用 JSON 响应实现基本的笔记记录 CRUD 操作。

  1. 特征
    1. 设置
      1. 运行服务器
        1. 生产环境构建
          1. 可用工具
            1. 测试
              1. 定制

                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