Supermemory MCP
An MCP server that enables users to visualize Supermemory document data as an interactive memory graph within MCP-compatible clients like Claude. It provides a dedicated tool to fetch and render data as an interactive widget while keeping API keys secure on the server side.
README
Supermemory MCP
Built with Codex. Review, test, and harden before using in production.
MCP server for rendering your Supermemory data as an interactive memory graph inside MCP-compatible clients (Claude, Inspector, and other MCP Apps hosts).
Demo Preview

What This Server Does
- Exposes a tool:
show-memory-graph - Fetches document data from Supermemory on the server side
- Returns an interactive widget powered by
@supermemory/memory-graph - Keeps your Supermemory API key off the client
Architecture
- Runtime:
mcp-useserver - Tool handler:
/index.ts - Widget UI:
/resources/memory-graph/widget.tsx - Widget props schema:
/resources/memory-graph/types.ts - Shared styles:
/resources/styles.css
Prerequisites
- Node.js 18+
- npm
- Supermemory API key
Environment Variables
Required:
SUPERMEMORY_API_KEY=sm_...
Optional:
# Base URL for MCP server metadata (important in deployed environments)
MCP_URL=https://your-mcp-server.example.com
# Override Supermemory API host if needed
SUPERMEMORY_API_BASE_URL=https://api.supermemory.ai
Local Development
npm install
npm run dev
Open Inspector:
http://localhost:3000/inspector
Tool Contract
Tool Name
show-memory-graph
Inputs
page?: numberdefault1limit?: numberdefault250(max500)sort?: "createdAt" | "updatedAt"default"createdAt"order?: "asc" | "desc"default"desc"variant?: "console" | "consumer"default"consumer"showSpacesSelector?: booleandefault depends on variant
Behavior
- Calls
POST /v3/documents/documentson Supermemory - Returns widget props (
documents,variant, etc.) - Returns text output summary for the model
- Handles API errors and surfaces readable error messages in the widget
Deploy
mcp-use deploys source from GitHub, but environment variables are attached to the deployment (not committed to the repo).
npm run deploy
Before deploy:
- Set
SUPERMEMORY_API_KEYin the deployment environment - Set
MCP_URLto the final public URL - Redeploy/restart after environment changes
Deploy with environment variables (recommended)
Set env vars at deploy time:
npm run deploy -- \
--env SUPERMEMORY_API_KEY=sm_your_key_here \
--env SUPERMEMORY_API_BASE_URL=https://api.supermemory.ai
Or use an env file:
# .env.production (do not commit this file)
SUPERMEMORY_API_KEY=sm_your_key_here
SUPERMEMORY_API_BASE_URL=https://api.supermemory.ai
npm run deploy -- --env-file .env.production
If your deployment already exists, re-running deploy updates code from GitHub and keeps/updates deployment env vars based on your flags/dashboard settings.
Using with Claude
- Deploy this MCP server
- Add the MCP server URL in Claude MCP settings
- Call the tool:
show-memory-graph
Important:
- Do not put
SUPERMEMORY_API_KEYinto Claude connector fields - The key belongs only in the MCP server environment
Troubleshooting
401 Unauthorized from Supermemory
- Key is invalid, malformed, or from the wrong environment
- Ensure key value does not include
Bearer - Restart/redeploy after updating env vars
Graph header renders but canvas is blank
- Usually caused by malformed/empty memory payloads or sizing
- This project normalizes memory entries and enforces widget viewport height
- Confirm tool response includes non-empty
documents
Build command fails with mcp-use: command not found
- Dependencies are not installed in the current environment
- Run
npm installfirst
Security Notes
- API key is only used server-side
- Never expose Supermemory credentials in widget/client code
- Review CSP and external domains before production rollout
Production Checklist
- Validate input limits and rate controls
- Add request/response observability and error tracking
- Add auth and access controls for your MCP endpoint
- Load test with real document volume
- Pin dependency versions instead of
latestwhere required
Useful Links
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.