gaabigol/MCP-Server
If you are the rightful owner of MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a comprehensive overview of setting up and running an MCP-Streamable-HTTP server using Node.js and related tools.
MCP-STREAMABLE-HTTP sample
This demonstrates a working pattern for MCP-Streamable-HTTP MCP servers with MCP clients that use tools from them.
Node setup via nvm
nvm use 22
Project base setup
Install the required dependencies using npm:
cp .env.example .env
Build the Project
Compile the TypeScript code into JavaScript:
npm run build
This will generate the compiled files in the dist directory.
Run the Server
Start the server in production mode:
npm start
Alternatively, for development mode with live reloading, use:
npm run dev
Testing the Server
- Using the MCP Inspector The MCP Inspector is a tool to test and inspect your MCP server. You can use it to verify that your tools and prompts are registered correctly.
Run the following command to inspect your server:
npx @modelcontextprotocol/inspector ./dist/server.js 2. Using Postman MCP Uou can try using postman MCP client connector: Postman Client Connector
This will open an interactive interface where you can test the tools and prompts registered in your server like below.