MyPostmanServer
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., "@MyPostmanServersay hello to John"
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.
MCP Server - MyPostmanServer
A lightweight Model Context Protocol (MCP) server built with Node.js that exposes custom tools via HTTP/SSE for clients like Postman.
Overview
This project implements an MCP server that communicates with external clients using Server-Sent Events (SSE) over HTTP. It demonstrates how to:
Create and register custom tools
Validate input parameters with Zod
Establish bidirectional communication with MCP clients
Handle tool invocations and return formatted responses
Related MCP server: LeanMCP Minimal Server
Features
Custom Tools: Defines a
greettool that clients can invokeType-Safe Validation: Uses Zod for runtime parameter validation
SSE Transport: Full-duplex communication over HTTP without WebSockets
Express Server: Lightweight HTTP server for handling client connections
Project Structure
.
├── index.js # Main MCP server implementation
├── package.json # Project dependencies and metadata
├── package-lock.json # Dependency lock file
├── .gitignore # Git ignore rules
└── README.md # This filePrerequisites
Node.js 16+ (with ES module support)
npm or yarn for package management
Installation
Clone the repository:
git clone https://github.com/gunjankum06/mcp.git
cd mcpInstall dependencies:
npm installUsage
Starting the Server
node index.jsYou should see:
🚀 Server ready at http://localhost:3000/sseConnecting a Client
MCP clients (like Postman, Claude, or custom applications) can connect to the server:
Initiate Connection: Make a GET request to
http://localhost:3000/sseStream will open: The server establishes a persistent SSE connection
Call Tools: Send requests to
http://localhost:3000/messageto invoke tools
Available Tools
greet
Greets a person by name.
Parameters:
name(string, required): The name of the person to greet
Response:
{
"content": [
{
"type": "text",
"text": "Hello {name}! MCP is running on your laptop."
}
]
}Example:
POST http://localhost:3000/message
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "greet",
"arguments": {
"name": "John"
}
}
}Architecture
Components
MCP Server (
McpServer)Core component that manages tool definitions and processing
Exposes tools to connected clients
Handles tool invocations
SSE Transport (
SSEServerTransport)Manages HTTP streaming connection with clients
Handles bidirectional message exchange
Routes
/messagecallbacks back to the server
Express API
/sse(GET): Endpoint for client connection initialization/message(POST): Endpoint for receiving client messages
Communication Flow
Client Server
| |
|---- GET /sse -------> |
| Create SSE Transport
| Connect MCP Server
|<----- SSE Stream ---- |
| |
|---- POST /message ------> |
| (tool call request) Process Request
| |
|<----- Response ------- |
| (tool response) |Dependencies
@modelcontextprotocol/sdk: MCP protocol implementation
express: HTTP server framework
zod: Schema validation library
Configuration
The server is configured in index.js with:
Server Name:
MyPostmanServerServer Version:
1.0.0Port:
3000
To modify these, edit the corresponding values in the code.
Error Handling
Invalid tool parameters are caught by Zod schema validation
Missing transport connections are handled gracefully in the
/messagerouteThe server continues running even if individual tool calls fail
Development
Adding New Tools
To add a new tool, use the server.tool() method:
server.tool(
"toolName",
{ param1: z.string(), param2: z.number() },
async ({ param1, param2 }) => ({
content: [{ type: "text", text: `Result: ${param1} ${param2}` }]
})
);Running in Development
For development with auto-reload, install nodemon:
npm install --save-dev nodemon
nodemon index.jsTroubleshooting
Port Already in Use
If port 3000 is already in use, modify the port number in index.js:
app.listen(YOUR_PORT, () => {
console.log(`🚀 Server ready at http://localhost:YOUR_PORT/sse`);
});Client Connection Issues
Ensure the server is running before connecting clients
Check that the client is using the correct endpoint URL
Verify that SSE is supported by your client
Tool Not Found
Ensure tools are registered before the server starts listening
Check tool names match exactly (case-sensitive)
Verify input parameters match the defined schema
Resources
License
MIT
Author
gunjankum06 - GitHub user
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
- Flicense-qualityDmaintenanceGenerates MCP servers from Postman API requests, automatically creating JavaScript tools that enable LLMs to interact with any API documented in Postman collections. Supports authentication configuration and deployment via STDIO or SSE.Last updated
- Flicense-qualityDmaintenanceA minimal MCP server framework that enables zero-config tool discovery and streamable HTTP transport using the LeanMCP SDK. It allows developers to build type-safe services with automatic schema validation and integrated React UI components.Last updated
- Flicense-qualityDmaintenanceA standalone MCP server that exposes API endpoints as tools for AI assistants by proxying requests to a target API defined in an OpenAPI specification. It supports various authentication methods and utilizes Server-Sent Events (SSE) to facilitate integration with clients like Claude and ChatGPT.Last updated
- AlicenseBqualityBmaintenanceDynamic MCP server for Node.js enabling runtime tool creation, management, and execution in isolated sandboxes (Docker or Node).Last updated8311MIT
Related MCP Connectors
A basic MCP server to operate on the Postman API.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
MCP (Model Context Protocol) server for Appwrite
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/gunjankum06/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server