✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

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.

Featured Templates

View More
AI Assistants
Talk with Claude 3
159 1523
Customer service
Multi-language AI Translator
136 921
Verified Icon
AI Agents
AI Chatbot Starter Kit
1336 8300 5.0
AI Assistants
AI Chatbot Starter Kit v0.1
140 913
AI Characters
Sarcastic AI Chat Bot
129 1713
AI Engineering
Python Bug Fixer
119 1433

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.