Simple TypeScript MCP Server
简单的 TypeScript MCP 服务器
一个简单的 TypeScript 模板,用于构建具有基本 CRUD 操作的模型上下文协议 (MCP) 服务器。此模板为创建返回 JSON 响应的 MCP 工具奠定了基础。
特征
具有 CRUD 操作的简单注释 API
内存数据存储
TypeScript 实现
JSON 响应
准备使用 Vitest 进行测试
Related MCP server: MCP Server Starter
设置
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中的工具来满足您的需求。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis TypeScript-based MCP server allows users to manage a simple notes system through creating and summarizing text notes using Model Context Protocol (MCP).1,2708MIT
- AlicenseCqualityDmaintenanceA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.15647MIT
- FlicenseNot gradedqualityDmaintenanceA TypeScript-based MCP server that enables users to manage text notes with features like note creation and summary generation using a Model Context Protocol.1
- AlicenseBqualityDmaintenanceThis TypeScript-based MCP server allows users to manage and interact with a note system through Model Context Protocol, enabling note creation and summarization with URIs and metadata.1MIT
Related MCP Connectors
Kickstart development with a customizable TypeScript template featuring sample tools for greeting,…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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-template'
If you have feedback or need assistance with the MCP directory API, please join our Discord server