MCP Personal Tools 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
mcp/
├───.gitignore
├───package-lock.json
├───package.json
├───tsconfig.json
├───.git/...
├───build/
│ └───data/...
└───src/
├───server.ts
└───data/
└───users.jsonThe 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:
npm installBuild the server:
npm run server:build
Usage
To start the server, run:
npm startFor development, you can use:
npm run server:devThis 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}/profileMIME 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.
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/Myk3rinos/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server