Simple TypeScript MCP Server
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 installRunning the server
npm run devBuilding for production
npm run build
npm startAvailable Tools
This template includes the following MCP tools:
getNote: Retrieve a note by IDgetAllNotes: Get all notescreateNote: Create a new noteupdateNote: Update an existing notedeleteNote: Delete a note by ID
Testing
Run the tests with:
npm testOr watch mode:
npm run test:watchCustomizing
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.
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