MCP Server with Durable History
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., "@MCP Server with Durable Historycontinue our conversation about the new feature"
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 — stateless instances, external session state, durable history
Run it
npm install
npm run dev # starts the server on :3000
npm run simulate # in another terminal: runs the traffic simulationRelated MCP server: memory-engine-mcp
Files
src/session-store.ts— the "hot" tier. Stands in for Redis: active session state, TTL-expired. Swap the internals forioredislater; the interface (get/create/update) doesn't change.src/history-store.ts— the "durable" tier. Stands in for Postgres: append-only conversation log, idempotency-key guarded so client retries under load never duplicate a turn.src/mcp-instance.ts— the actual MCP server: registers achattool that resolvessession_id→ cache-or-rebuild-from-history → append turn → reply → update session.src/server.ts— Express + Streamable HTTP transport. Note the comment block distinguishing MCP protocol session (transport handshake, kept in an in-memoryMap, dies with the process) from application conversation session (your data, lives in the stores above, survives a restart/rescale).src/simulate-traffic.ts— a real MCP client (not curl) that (a) runs one user through several turns on the same session to prove continuity, and (b) fires 25 concurrent new conversations to prove the server handles concurrent load without cross-talk.
What's simulated vs. real here
Real: the MCP protocol handshake, tool registration/invocation, the client↔server wire format, concurrency handling.
Simulated (by design, so you can run this with zero external infra):
SessionStore/HistoryStore are in-memory. To go to production:
Replace
Mapinsession-store.tswith anioredisclient — same method signatures.Replace the array in
history-store.tswithpg(or Drizzle/Prisma) queries against aturnstable — same method signatures.Run multiple instances of
server.tsbehind a load balancer. Because step 4 in the design notes still applies — the MCP protocol session (theMapinserver.ts) is per-process — route byMcp-Session-Idwith sticky sessions, OR terminate the client connection per-request (stateless mode) if your client library supports it. The application conversation state (step 1–2) has no such constraint; it's already externalized and safe to hit from any instance.Add a queue in front for burst absorption once traffic exceeds what autoscaling can react to in time (see architecture diagram earlier in the conversation).
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
- Alicense-qualityDmaintenanceA stateless MCP server that enables real-time, bidirectional messaging and collaboration between different IDEs and AI agents. It facilitates client-to-client communication, allowing tools like Cursor, VS Code, and Windsurf to coordinate workflows and share information seamlessly.Last updated1MIT
- Flicense-qualityDmaintenanceAn MCP server that provides persistent memory for AI agents by storing session snapshots, factual memories, and conversation summaries. It enables seamless continuity between interactions by allowing agents to restore previous emotional states and recall relevant past experiences.Last updated
- AlicenseCqualityBmaintenanceAn MCP server that provides memory management and gateway capabilities, enabling persistent storage and retrieval of contextual information across sessions.Last updated4874024MIT
- Alicense-qualityBmaintenanceAn MCP server for inter-session communication between Claude Code instances using NATS JetStream, enabling room-based messaging, direct agent communication, and presence tracking.Last updatedApache 2.0
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
A MCP server built for developers enabling Git based project management with project and personal…
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/gavinarori/MCP-system-design-and-architecture-in-typescript-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server