Notes MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Notes MCP Server
A simple Model Context Protocol (MCP) server that provides note-taking functionality for Claude Desktop. This server allows Claude to create, read, update, and delete notes stored as JSON files.
šÆ Purpose
This project was created as a hands-on learning exercise for understanding MCP (Model Context Protocol). It demonstrates:
How to build an MCP server from scratch
TypeScript and Node.js development
File system operations for data persistence
Data validation using Zod schemas
Integration with Claude Desktop
Related MCP server: notes-box
⨠Features
Create Notes: Add new notes with titles and content
Read Notes: Retrieve and display existing notes
Update Notes: Modify the content of existing notes
List Notes: See all available notes
Delete Notes: Remove notes permanently
Persistent Storage: Notes are saved as JSON files in the
data/directoryData Validation: All note data is validated using Zod schemas
Error Handling: Graceful handling of file system and validation errors
š ļø Technologies Used
TypeScript: For type-safe development
Node.js: Runtime environment
Model Context Protocol SDK: For MCP server functionality
Zod: For data validation and type safety
File System: JSON files for simple persistence
š Project Structure
notes-mcp-server/
āāā src/
ā āāā index.ts # Main MCP server implementation
āāā data/ # Directory where notes are stored as JSON files
āāā build/ # Compiled JavaScript output
āāā .vscode/
ā āāā mcp.json # MCP server configuration for VS Code
ā āāā tasks.json # VS Code build tasks
āāā .github/
ā āāā copilot-instructions.md
āāā package.json # Node.js project configuration
āāā tsconfig.json # TypeScript configuration
āāā .gitignore # Git ignore file
āāā README.md # This fileš Getting Started
Prerequisites
Node.js 16 or higher
Claude Desktop (latest version)
VS Code (optional, for development)
Installation
Clone this repository:
git clone <repository-url> cd notes-mcp-serverInstall dependencies:
npm installBuild the project:
npm run buildTest the server locally (optional):
npm run dev
Configuration for Claude Desktop
Find your Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add your server configuration:
{ "mcpServers": { "notes": { "command": "node", "args": ["/absolute/path/to/notes-mcp-server/build/index.js"] } } }Important: Replace
/absolute/path/to/notes-mcp-serverwith the actual absolute path to your project directory.Examples:
Windows:
"args": ["C:\\Users\\YourName\\projects\\notes-mcp-server\\build\\index.js"]macOS/Linux:
"args": ["/home/username/projects/notes-mcp-server/build/index.js"]
Restart Claude Desktop
š Available Tools
Once connected to Claude Desktop, these tools will be available:
create_note
Description: Create a new note with a title and content
Parameters:
title(string, required): The title of the notecontent(string): The content/body of the note
read_note
Description: Read the content of an existing note by title
Parameters:
title(string, required): The title of the note to read
update_note
Description: Update the content of an existing note
Parameters:
title(string, required): The title of the note to updatecontent(string): The new content for the note
list_notes
Description: Get a list of all available notes
Parameters: None
delete_note
Description: Delete an existing note
Parameters:
title(string, required): The title of the note to delete
š” Usage Examples
Once connected to Claude Desktop, you can use natural language:
"Create a note titled 'Shopping List' with the content 'Milk, Eggs, Bread'"
"Show me my Shopping List note"
"Update my Shopping List to add 'Butter, Cheese'"
"What notes do I have?"
"Delete my old Shopping List note"
šļø Data Storage
Notes are stored as individual JSON files in the data/ directory with this structure:
{
"title": "Shopping List",
"content": "Milk, Eggs, Bread",
"created": "2025-01-20T10:30:00.000Z",
"updated": "2025-01-20T10:30:00.000Z"
}Filenames are generated from note titles by:
Converting to lowercase
Replacing spaces with hyphens
Removing special characters
Adding
.jsonextension
Example: "My Shopping List!" ā my-shopping-list.json
š§ Development
Available Scripts
npm run build: Compile TypeScript to JavaScriptnpm run start: Build and run the servernpm run dev: Quick development build and run
Project Configuration
TypeScript: Configured for ES2022 with Node16 modules
Output: Compiled to
build/directoryType Checking: Strict mode enabled for better error catching
Modules: ES modules with proper Node.js compatibility
š Troubleshooting
Server not appearing in Claude Desktop
Check that the path in
claude_desktop_config.jsonis absolute and correctVerify the server builds without errors (
npm run build)Restart Claude Desktop completely
Check Claude Desktop logs for errors
Tools not working
Ensure the
data/directory is writableCheck for TypeScript compilation errors
Verify all dependencies are installed
Common Issues
Path problems: Always use absolute paths in Claude Desktop configuration
Permission issues: Ensure the
data/directory has write permissionsTypeScript errors: Run
npm run buildto check for compilation issues
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
š Learning Notes
This project demonstrates several important MCP concepts:
MCP Server Structure: How to set up a basic MCP server with tools
Data Validation: Using Zod for input validation and type safety
File Operations: Persistent storage using the Node.js file system
Error Handling: Graceful error handling and user feedback
TypeScript Integration: Type-safe development with modern JavaScript features
š Resources
š¤ Contributing
This is a learning project, but feel free to:
Suggest improvements
Report bugs
Add features
Share your own MCP server experiments
Happy coding and learning! š
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
Related MCP Connectors
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Notes, tasks, habits, journal and 6 more tools Claude can read and change, with undo. Free.
Notes and actions in one app. Let Claude or ChatGPT read and update them.
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to create, read, list, and manage local notes stored on the computer using natural language requests.1-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to add, get, and list notes, with state persisted to a JSON file in the home directory.MIT
- FlicenseNot gradedqualityCmaintenanceEnables managing personal notes through Claude Desktop with add, get, update, delete, and list tools, using atomic saves and a configurable notes file.-
- AlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to manage personal notes stored in a JSON file, supporting add, get, update, delete, and list operations with atomic saves.MIT