mcp-express-playground
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-express-playground
A minimal, stateless Model Context Protocol server built with Express and TypeScript, tested with Postman.
What this demonstrates
How an MCP server describes tools and how a client discovers them (
tools/list)How a tool call travels (
tools/call) over Streamable HTTPStateless design: a new server and transport per request, no session store
In-band error handling:
isError: truewith acodeandnext_actionthe model can act onBearer authentication in front of
/mcp
Related MCP server: Travel MCP
MCP vs a traditional API wrapper
REST wrapped for an LLM | MCP server | |
Discovery | Hardcoded in each app |
|
Glue code | Written per app and vendor | Handled by the client |
Errors | HTTP status codes | Readable in-band errors |
Contract | Custom | Standard JSON-RPC methods |
Tools
Tool | What it does |
| Search mock shuttle trips by origin, destination and date |
| Hold a seat for 10 minutes. Fails with |
Run it
cp .env.example .env
npm install
npm run devHealth check: GET http://localhost:3000/health
MCP endpoint: POST http://localhost:3000/mcp
Test with Postman
Headers on every /mcp request:
Authorization: Bearer <MCP_BEARER_TOKEN>Content-Type: application/jsonAccept: application/json, text/event-stream
Then send initialize, tools/list, and tools/call (bodies in the walkthrough below).
Design decisions
Stateless transport: survives restarts and horizontal scaling.
JSON responses enabled: simpler to debug than SSE for request/response tools.
Integer pesewas for money: no floating point errors.
Empty results are not errors: the agent should offer alternatives.
In-memory data: deliberate for a playground. Production uses Postgres.
Known limitations
Holds are in memory and never expire. Expiry is enforced lazily in the real project.
Single shared bearer token. No rotation or per-client auth.
No tests yet.
This server cannot be deployed
Maintenance
Related MCP Connectors
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Agent-native travel platform: read-only flight, hotel, and brand tools over MCP. OAuth sign-in.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides MCP tool endpoints for hotel and flight actions to support multi-agent travel planning.-
- FlicenseNot gradedqualityCmaintenanceProvides mock travel planning tools including flight and hotel search, recommendations, and multi-turn trip drafting. Supports stdio and HTTP transports and is intended for testing/demo purposes only.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search live travel inventory for flights, stays, and car hire through typed tools, with place resolution and price details while deliberately exposing no booking or payment surface.MIT
- -licenseNot gradedqualityBmaintenanceEnables AI agents to discover and invoke expert booking tools via a Streamable HTTP MCP server, supporting slot search, holds, payments, and human-in-the-loop confirmations with strict validation and time-based contracts.-