http-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., "@http-mcp-serverecho 'hello'"
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 Mock HTTP
Mock HTTP server for MCP-style clients.
Quick path
Put
PORTandMCP_NAMEin.envat the repo root.Run
pnpm devorpnpm start.Open
http://localhost:<PORT>/healthor connect a client tohttp://localhost:<PORT>/mcp.
Runtime configuration
Source | Behavior |
| Loaded by |
Shell environment | Takes precedence over |
| Validates |
Variable | Default | Purpose |
|
| HTTP listen port |
|
| MCP server name and health payload name |
Versioning
Source | Purpose |
| Single source of truth for the server version |
| Runtime accessor used by the MCP server and tests |
| Repository-level release tracking |
When reusing this repository as a base for another MCP server, update the package version and add a changelog entry before the first release.
Requirements
Node.js 26.0.0
pnpm
Install
pnpm installRun
pnpm devThe server bootstrap loads .env automatically, so local values apply without exporting them in the shell.
Build
pnpm buildDocker
Build the production image:
docker build -t mcp-server .Run it with runtime environment variables:
docker run --rm -p 3000:3000 --env-file .env mcp-serverOverride values at runtime when needed:
docker run --rm -p 3000:3000 -e PORT=8080 -e MCP_NAME=my-mcp mcp-serverThe image does not contain your .env file. That keeps secrets out of the image while still letting the server read .env-style values if you provide them at runtime.
Quality checks
pnpm typecheck
pnpm lint
pnpm test
pnpm coverage
pnpm formatpnpm coverage runs Vitest with the v8 coverage provider and prints a coverage summary in the terminal.
Endpoints
GET /health— JSON health response withok,name, anduptime./mcp*— MCP streamable HTTP transport handled by the SDK bridge.
MCP Inspector
Use the Inspector as a client against the running HTTP server:
Start this project.
Launch the Inspector:
npx @modelcontextprotocol/inspectorIn the Inspector, choose the Streamable HTTP transport and connect to
http://localhost:<PORT>/mcp.Verify the connection by listing tools or calling one of the registered tools.
Project structure
src/server.ts— process bootstrap onlysrc/app.ts— HTTP server composition and routingsrc/config/env.ts— environment parsing and validationsrc/http/routes/health.ts— health route handlersrc/mcp/create-server.ts— MCP server construction and tool registrationsrc/version.ts— runtime version resolution frompackage.jsonsrc/mcp/tools/echo.ts— echo tool registrationsrc/mcp/tools/time.ts— time tool registrationsrc/mcp/transport.ts— Node HTTP to MCP transport bridge
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.
Latest Blog Posts
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/agarcia-seidor/http-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server