minimal-mcp-server
Click on "Install 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., "@minimal-mcp-serverCalculate the area of a rectangle with width 4 and height 7."
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.
Minimal MCP Server
This project demonstrates how to build a Model Context Protocol (MCP) server using the TypeScript SDK. It provides a minimal implementation in index.ts and includes two examples showcasing its usage.
Features
Minimal MCP Server: A lightweight server implementation using the MCP TypeScript SDK.
Tool Support: Includes tools for calculating the area of a rectangle and retrieving calculation history.
Examples: Demonstrates how to interact with the server and use the tools.
Related MCP server: My MCP Server
Prerequisites
Node.js (v16 or higher)
TypeScript
Installation
Clone the repository:
git clone <repository-url>Navigate to the project directory:
cd minimal-mcp-serverInstall dependencies:
npm install
Usage
Build the Project
Compile the TypeScript code:
npm run buildRun the Server
Start the MCP server:
node index.jsExamples
1. Calculate Area
Send a request to calculate the area of a rectangle:
{
"name": "calculate_area",
"arguments": {
"width": 5,
"height": 10
}
}Response:
{
"content": [{ "type": "text", "text": "Result: 50. Added to history." }]
}2. Get Calculation History
Retrieve the history of previous calculations:
{
"name": "get_calculation_history",
"arguments": {}
}Response:
{
"content": [{ "type": "text", "text": "History: [\"Untitled: 5x10 = 50\"]" }]
}Project Structure
index.ts: Contains the minimal MCP server implementation.package.json: Project metadata and dependencies.tsconfig.json: TypeScript configuration.
Dependencies
@modelcontextprotocol/sdk: MCP TypeScript SDK for building servers.@types/node: Type definitions for Node.js.typescript: TypeScript compiler.
License
This project is licensed under the ISC License.
How to Use
To use this minimal MCP server, you can configure it as follows:
{
"mcpServers": {
"my-minimal-server": {
"command": "node",
"args": ["/absolute/path/to/minimal-mcp-server/index.js"]
}
}
}Sample Usage


This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityCmaintenanceA simple local MCP server that provides greeting and integer addition tools.2
- Flicense-qualityCmaintenanceA basic MCP server for testing with echo, datetime, and calculator tools.112
- AlicenseAqualityCmaintenanceA minimal MCP server that provides a single 'hello' tool returning 'Hello, world!'.211MIT
Related MCP Connectors
A basic MCP server to operate on the Postman API.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
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/jl681/minimal-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server