simple-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., "@simple-mcp-serverWhat's the weather in Tokyo?"
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.
Simple MCP Server Demo š
A full-featured demonstration project for the Model Context Protocol (MCP) built with TypeScript and @modelcontextprotocol/sdk.
This project showcases all three primary primitives of the MCP standard:
š ļø Tools ā Functions and actions executed by the AI model.
š Resources ā Data sources and context attachments read by the AI model via URIs.
š¬ Prompts ā Reusable, parameterized prompt templates and workflows.
It is structured to run both locally via Stdio (for Claude Desktop, IDEs, Inspector) and in the cloud on Vercel as a Serverless API (using Web Standards Streamable HTTP transport).
š Features Included
1. Tools
get_greeting: Greets a user by name with a friendly message.calculate: Performs arithmetic operations (add,subtract,multiply,divide,power) with safety checks (e.g. division by zero).fetch_weather: Fetches live, real-time weather forecasts for any city worldwide using the free Open-Meteo REST API (no API key required).add_note: Creates and stores a note in server memory with a custom ID.list_notes: Lists all notes currently stored in server memory.
2. Resources
Static Resource (
system://info): Returns host OS, Node.js version, memory usage, uptime, and timestamp in JSON format.Dynamic Resource Template (
notes://{id}): Reads specific note details and markdown content dynamically by ID.
3. Prompts
code_review: A structured code review prompt template that instructs the LLM to inspect code for security, performance, readability, and recommendations.summarize_notes: A prompt template that pulls all stored server notes and asks the model for an executive summary.
Related MCP server: creating-your-first-mcp-server
š Getting Started
Prerequisites
Node.js (v18 or higher recommended)
npm
Installation
npm installRun Local Automated Test Suite
npm testType Checking & Building
# Type check without emitting files
npm run typecheck
# Build to dist/ directory
npm run buildš Testing Interactively with MCP Inspector
The official MCP Inspector provides an interactive web UI to test and debug your MCP server:
npx @modelcontextprotocol/inspector tsx src/index.tsOnce running, open the URL provided in your terminal (usually http://localhost:5173) to test:
Tools tab: Execute
calculate,fetch_weather(e.g. city:"Tokyo"),add_note, andlist_notes.Resources tab: Read
system://infoornotes://welcome.Prompts tab: Test the
code_reviewandsummarize_notestemplates.
š Connecting to Local MCP Clients (Claude Desktop)
Add the following to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"simple-mcp-server": {
"command": "npx",
"args": [
"-y",
"tsx",
"/Users/saheel-ahmed/Projects/demos/saheel-git-repo/simple-mcp-project/src/index.ts"
]
}
}
}āļø Deploying to Vercel
This repository includes a serverless endpoint ready for Vercel in api/index.ts using WebStandardStreamableHTTPServerTransport.
Deploy using Vercel CLI
npx vercelFollow the interactive prompts to link and deploy your project.
Or Deploy via GitHub
Push this repository to GitHub.
Go to vercel.com/new and import the repository.
Click Deploy.
Once deployed, your remote MCP server endpoint will be live at:
https://<your-project-name>.vercel.app/apiRemote MCP clients can connect to this URL using the SSE/Streamable HTTP transport!
š Project Structure
simple-mcp-project/
āāā api/
ā āāā index.ts # Vercel Serverless Function entrypoint (HTTP / Web Standards)
āāā src/
ā āāā index.ts # Local entrypoint (Stdio transport)
ā āāā server.ts # MCP Server definition (Tools, Resources, Prompts)
ā āāā test-client.ts # Automated integration test suite
āāā tsconfig.json # TypeScript configuration
āāā vercel.json # Vercel routing configuration
āāā package.json # Dependencies, scripts, and build setup
āāā README.md # Project documentationThis 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
- AlicenseNot gradedqualityDmaintenanceA demonstration MCP server showcasing tools (calculator, file operations, weather, timestamp), resources (server config, system info, documentation), and reusable prompt templates for code review, documentation, and debugging.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables to perform mathematical calculations, retrieve weather information, and manage files through a standardized MCP interface, showcasing best practices for building MCP servers.1MIT
- AlicenseNot gradedqualityDmaintenanceThis MCP server provides tools like weather lookup and follows the Model Context Protocol for tool calling, resource sharing, and prompt templates.225MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to call weather tools, read resources, and use prompt templates for live weather data integration.2,013MIT
Related MCP Connectors
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for AI dialogue using various LLM models via AceDataCloud
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/saheel-ahmed/simple-mcp-project'
If you have feedback or need assistance with the MCP directory API, please join our Discord server