The MCP Personal Tools Server is a Node.js-based API that enables user management and note-taking through three core functionalities:
Fetch user details: Retrieve user profiles from a JSON database using the
user-details
resourceCreate users: Add new users to the database with the
create-user
tool, specifying parameters like name, email, address, phone, and passwordAdd notes: Append text as new lines to a local notes file using the
add-note
tool
Provides a note-taking tool that enables appending timestamped text entries to a local notes file stored in the user's Documents directory.
Serves as the runtime environment for the MCP server, required to run the personal tools server.
Used for package management and running server commands for the MCP personal tools server.
Used as the programming language for implementing the MCP server and custom tools.
Provides schema validation for defining tool parameters and ensuring proper data typing in the MCP server.
MCP Demo Server
This project is a demonstration server for the Model Context Protocol (MCP). It provides a set of resources and tools to interact with a simple user database.
Architecture
The server is built with Node.js and TypeScript, using the @modelcontextprotocol/sdk
. It communicates over standard I/O using a StdioServerTransport
.
The server exposes the following:
- Resources:
user-details
: Fetches user profiles from a JSON file.
- Tools:
create-user
: Creates a new user in the JSON database.add-note
: Adds a note to a local file in the user's documents directory.
Installation
- Clone the repository.
- Install the dependencies:
- Build the server:
Usage
To start the server, run:
For development, you can use:
This will start the server with tsx
for automatic recompilation.
Available Scripts
npm start
: Starts the production server.npm run server:dev
: Starts the development server.npm run server:build
: Compiles the TypeScript code.npm run server:build:watch
: Compiles the TypeScript code in watch mode.npm run server:inspect
: Inspects the server using the MCP Inspector.
Resources
user-details
- Description: Get a user's details from the database.
- URI:
users://{userId}/profile
- MIME Type:
application/json
Tools
create-user
- Description: Create a new user in the database.
- Parameters:
name
(string)email
(string)address
(string)phone
(string)password
(string)
add-note
- Description: Adds a new line to the notes file.
- Parameters:
text
(string): The text to add to the notes file.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A simple server implementing the Model Context Protocol (MCP) that exposes personal tools like note-taking for compatible MCP clients or agents.
Related MCP Servers
- AsecurityAlicenseAqualityA beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.Last updated -32462Apache 2.0
- -securityFlicense-qualityThis TypeScript-based MCP server allows users to manage a simple notes system through creating and summarizing text notes using Model Context Protocol (MCP).Last updated -7367
- AsecurityAlicenseAqualityThis 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.Last updated -1MIT License
- AsecurityFlicenseAqualityA simple note-taking MCP server that stores notes and can generate summaries of stored content.Last updated -4