Minimal MCP Demo
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 DemoWhat's the weather in New York?"
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 Demo
This is a very small Model Context Protocol (MCP) example.
The goal is to show the basic architecture in the simplest possible way:
a server exposes tools
a client calls those tools
both communicate over stdio
Architecture
1. Server
The server is the part that knows how to do work.
In this project, the server:
creates an MCP server instance
registers a tool named
get_weatherwaits for incoming requests
The server code is in:
2. Tool
A tool is a function the server exposes to the client.
Here, the tool is called get_weather.
When the client calls it, the server:
reads the input (
city, optionalcountry)creates a fake weather response
returns the result as structured data and text
3. Client
The client is the part that asks the server to do something.
It:
starts the server as a child process
sends a
tools/callrequestprints the result
The client code is in:
4. Stdio transport
stdio means standard input/output.
This is the communication channel used by the MCP server and client.
In simple terms:
the client writes a request to the server's stdin
the server reads it
the server writes the response to stdout
the client reads the response
This is why the server uses:
const transport = new StdioServerTransport();
await server.connect(transport);and the client uses:
const transport = new StdioClientTransport({
command: "node",
args: ["build/index.js"],
});Related MCP server: MCP Server Demo
Request flow
Here is the full flow in one simple sequence:
Client launches the server
Client sends
tools/callforget_weatherServer receives the request
Server runs the tool function
Server returns text + JSON data
Client prints the response
Sequence diagram
sequenceDiagram
participant Client
participant Server
participant Tool
Client->>Server: Launch process over stdio
Client->>Server: tools/call { name: "get_weather", arguments: { city, country } }
Server->>Tool: Execute get_weather
Tool-->>Server: Return weather result
Server-->>Client: JSON response with content + structuredContent
Client->>Client: Print resultFiles in this project
src/server.ts - server implementation
src/index.ts - server entry point
src/client.ts - client implementation
package.json - scripts to build and run
Run the demo
Install dependencies:
npm installBuild the project:
npm run buildRun the server:
npm startThen, in another terminal, run the client:
npm run clientYou should see a successful get_weather response.
Normal client-server vs MCP
A normal client-server app usually looks like this:
client sends an HTTP request to a server
server is already running on a port like
3000server responds with JSON
both sides communicate over the network
An MCP server is different:
the server is usually a local process
the client launches it and communicates over stdio
the server exposes tools, not general web endpoints
the client sends MCP protocol messages like
tools/call
Simple comparison
Pattern | Normal app | MCP app |
Transport | HTTP / REST | stdio or streamable HTTP |
Server role | Service | Tool provider |
Lifecycle | Long-running service | Often started on demand |
Main purpose | Business API | Expose actions to an AI client |
In one sentence
A normal client-server app is built for app-to-app communication, while an MCP server is built for AI/host-to-tool communication.
Mental model
Think of it like this:
Server = worker
Tool = job the worker can do
Client = person asking the worker to do the job
Stdio = the communication pipe between them
That is the architecture of a basic MCP server.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseBqualityDmaintenanceA simple MCP server that provides a tool to fetch current weather information for cities using the Open-Meteo API, communicating through stdin/stdout.12
- Alicense-qualityDmaintenanceA minimal Model Context Protocol server demo that exposes tools through HTTP API, including greeting, weather lookup, and HTTP request capabilities. Demonstrates MCP server implementation with stdio communication and HTTP gateway functionality.8ISC
- FlicenseAqualityDmaintenanceLightweight MCP server that exposes tools for system information and weather lookup, designed for agent integration via stdio.1
- Alicense-qualityDmaintenanceThis MCP server provides tools like weather lookup and follows the Model Context Protocol for tool calling, resource sharing, and prompt templates.270MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
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/ShashankEd/demo-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server