Skip to main content
Glama
MCP_CreateUser

MCP_CreateUser

MCP Server and Client

A Model Context Protocol (MCP) server with a create-user tool that persists users to a local JSON file, plus a client for testing it.

Overview

This project demonstrates a minimal MCP server built with the @modelcontextprotocol/sdk package. It exposes a single tool — create-user — that accepts a name, email, address, and phone, then appends the record to data/users.json.

Related MCP server: Data Analysis MCP Server

Project Structure

.
├── index.js            # MCP server entry point
├── package.json        # Scripts and dependencies
├── package-lock.json
├── .gitignore
├── README.md
└── data/
    └── users.json      # Persistent user store (created on first run)

Prerequisites

  • Node.js 18+

  • npm

Setup

npm install

Running the Server

Start the server in STDIO mode (the transport used by MCP clients and the Inspector):

npm run server:dev

Running the Inspector

The MCP Inspector lets you list and call tools from a web UI:

npm run server:inspect

It opens http://127.0.0.1:6274 automatically. Set Transport Type to STDIO, Command to npm, and Arguments to run server:dev, then click Connect.

Tools

create-user

Create a new user in the database.

Parameters

Name

Type

Required

Description

name

string

yes

Full name of the user

email

string

yes

Email address

address

string

yes

Postal address

phone

string

yes

Phone number

Example call

{
  "name": "Alice",
  "email": "alice@example.com",
  "address": "123 Main St",
  "phone": "555-1234"
}

Result

{
  "content": [
    {
      "type": "text",
      "text": "User 5 created successfully"
    }
  ]
}

Users are stored in data/users.json as an array of objects with an auto-incrementing id.

License

ISC

Available Tools

1 tool
create-userC

Create a new user in the database

Inputs: name (required), email (required), phone (required), address (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of confusion or overlap with other tools. The single tool's purpose is clearly stated.

    Naming Consistency5/5

    The tool name 'create-user' follows a clear verb-object convention. With only one tool, there are no inconsistent naming patterns to detract from coherence.

    Tool Count3/5

    One tool is purpose-aligned for a server named MCP_CreateUser, but it still feels thin compared to typical 3-15 tool servers. There is no surrounding surface for related operations.

    Completeness2/5

    Only creation is exposed; there is no get, list, update, or delete for users. Any workflow that needs to verify, retrieve, or manage the created user will hit a dead end, making the surface significantly incomplete.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      A simple user management service that enables creating new users and retrieving user lists through the Model Context Protocol. Supports user creation with name, email, password, address, and phone parameters.
      1
      ISC