my-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@my-mcp-servershow me all the users in the database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
my-mcp-server
A playground and experimentation project for building an MCP (Model Context Protocol) server using TypeScript. It demonstrates how to expose tools and resources to AI agents and language models via the stdio transport.
The server manages a simple user database (backed by a local JSON file) and exposes endpoints that an AI agent can call to read or create user records.
Features
Tool —
my-create-tool: Creates a new user by acceptingname,address,email, andphonefields and persisting the record tosrc/users.json.Resource —
users://all: Returns the full list of users from the mock database as JSON.Resource —
users://{userId}/profile: Returns the profile of a single user identified byuserId.
Related MCP server: FastMCP Example Server
Prerequisites
Installation
npm installRunning the Server
Development mode (using tsx, no build step)
npm run server:devBuild & run compiled output
npm run server:build # compiles TypeScript → JavaScript
node dist/server.js # run the compiled serverWatch mode (auto-recompile on changes)
npm run server:build:watchInspect with MCP Inspector UI
The MCP Inspector lets you interactively call tools and browse resources in a browser UI:
npm run server:inspectNote:
server:inspectsetsDANGEROUSLY_OMIT_AUTH=true— use this only for local development.
Loading the MCP Server in Agent Environments
Agent CLI (e.g. Claude Code CLI)
Existence of .mcp.json should be picked up by the agent and prompted to load the server. Otherwise it's a simple MCP server config that needs to be added to the configuration with other servers.
Project Structure
my-mcp-server/
├── src/
│ ├── server.ts # MCP server entry point (tools & resources)
│ └── users.json # Mock user database (read/written at runtime)
├── package.json
└── tsconfig.jsonTech Stack
Package | Role |
| MCP server SDK (tools, resources, stdio transport) |
| Input schema validation for tools |
| Run TypeScript directly without a build step |
| TypeScript compiler |
| Browser-based MCP debug UI |
License
ISC
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server that connects a local AI model (Ollama) with custom CRUD tools for an in-memory database, enabling natural language database management.-
- FlicenseNot gradedqualityDmaintenanceEducational example of an MCP server built with FastMCP, demonstrating how to expose tools, resources, and prompts for AI clients.-
- FlicenseNot gradedqualityDmaintenanceExample MCP server built with FastMCP, demonstrating tools, resources, and prompts for AI integration.13-
- FlicenseNot gradedqualityDmaintenanceA demonstrative MCP server that exposes a query-user tool for retrieving user info by ID, integrated with LangChain for agent-driven model reasoning and tool calls.-