Skip to content

bugrakocak/mcp-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This demo implementation of the MCP was developed using the official MCP documentation and the Cursor

MCP Notepad Server

A simple Model Context Protocol (MCP) server that provides notepad functionality for LLM applications. This project created with the help of the official MCP documentation and the Cursor.

Features

  • Create, read, update, and delete notes
  • Store notes in a local JSON file
  • Expose notes through MCP resources and tools

Installation

  1. Clone this repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage

Start the server:

npm start

The server will start and listen for MCP protocol messages on stdin/stdout.

MCP Resources

  • notes://list - Lists all notes
  • notes://id/{id} - Gets a specific note by ID

MCP Tools

  • add-note - Creates a new note

    • Parameters:
      • title (string): The title of the note
      • content (string): The content of the note
  • update-note - Updates an existing note

    • Parameters:
      • id (string): The ID of the note to update
      • title (string): The new title
      • content (string): The new content
  • delete-note - Deletes a note

    • Parameters:
      • id (string): The ID of the note to delete

Development

Run the server in development mode:

npm run dev

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published