EnvMem
Manages environment variables for Auth0, enabling storage and retrieval of API keys.
Manages environment variables for Clerk, enabling storage and retrieval of API keys.
Manages environment variables for Cloudinary, enabling storage and retrieval of API keys.
Manages environment variables for Datadog, enabling storage and retrieval of API keys.
Manages environment variables for Firebase, enabling storage and retrieval of API keys.
Manages environment variables for MongoDB, enabling storage and retrieval of connection strings.
Manages environment variables for Netlify, enabling storage and retrieval of API keys.
Manages environment variables for OpenAI, enabling storage and retrieval of API keys.
Manages environment variables for PayPal, enabling storage and retrieval of API keys.
Manages environment variables for PlanetScale, enabling storage and retrieval of database credentials.
Manages environment variables for Railway, enabling storage and retrieval of API keys.
Manages environment variables for Resend, enabling storage and retrieval of API keys.
Manages environment variables for SendGrid, enabling storage and retrieval of API keys.
Manages environment variables for Sentry, enabling storage and retrieval of DSN or API keys.
Manages environment variables for Stripe, enabling storage and retrieval of secret keys.
Manages environment variables for Supabase, enabling storage and retrieval of API keys and database credentials.
Manages environment variables for Vercel, enabling storage and retrieval of API tokens.
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., "@EnvMemget .env file for my-project in production"
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.
EnvMem

Your Environment Variables, Always at Hand
Personal environment variable memory with semantic search and project management. Multi-tenant MCP server that remembers all your API keys, secrets, and configurations.
Live: envmem.com | NPM: npmjs.com/package/envmem

Features
Semantic Search - Natural language queries powered by Cloudflare Vectorize
Project Management - Organize envs by project with dev/staging/prod environments
Auto-Fill .env - Parse .env.example and fill with your stored values
Multi-Tenant Isolation - Each API key gets completely isolated storage
MCP Protocol - Works with Claude, ChatGPT, and any MCP-compatible AI
Service Bundles - Get all env vars for Stripe + Supabase + OpenAI in one query
Edge-Native - Sub-50ms responses from 300+ global locations
Related MCP server: Locus
🚀 Quick Start & MCP Configuration
EnvMem is designed to work seamlessly with any MCP-compatible client (like Claude Desktop, Cursor, or your own tools).
Option 1: Claude Desktop (Recommended)
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"envmem": {
"command": "npx",
"args": ["-y", "envmem"],
"env": {
"ENVMEM_API_KEY": "your-secret-api-key"
}
}
}
}Note: Generate your API key at envmem.com or use any random string (it acts as your personal partition).
Option 2: Remote MCP (No Node.js required)
If your MCP client supports remote URLs (SSE), you can connect directly without running anything locally:
{
"mcpServers": {
"envmem": {
"url": "https://envmem.com/mcp?apikey=your-secret-api-key"
}
}
}Usage
1. Import Your Variables
import_env_variables({
envText: `
OPENAI_API_KEY=sk-...
STRIPE_SECRET_KEY=sk_live_...
DATABASE_URL=postgres://...
`
})2. Create a Project
create_project({
name: "my-saas",
repoUrl: "github.com/me/my-saas",
tags: ["nextjs", "stripe", "supabase"]
})3. Link Services to Project
link_services_to_project({
projectName: "my-saas",
services: ["Stripe", "Supabase", "OpenAI", "Clerk"]
})4. Get Complete .env File
get_envs_for_project({
projectName: "my-saas",
environment: "prod"
})
// Returns ready-to-use .env file content5. Auto-Fill from .env.example
fill_env_example({
envExampleContent: `OPENAI_API_KEY=\nSTRIPE_SECRET_KEY=\nDATABASE_URL=`,
projectName: "my-saas"
})
// Returns filled .env with your stored valuesMCP Tools
Search & Retrieve
Tool | Description |
| Semantic + keyword search |
| Get by exact name |
| Get all vars for services |
| List categories with counts |
Import & Manage
Tool | Description |
| Bulk import from .env text |
| Add single variable |
| Delete by name |
| Delete all (requires confirm) |
Project Management
Tool | Description |
| Create project with repo URL + tags |
| List all your projects |
| Link env to project (dev/staging/prod) |
| Bulk link services to project |
| Get .env file for project |
| Auto-fill .env.example |
| Delete project + links |
Typical Workflow
// 1. Import your envs once
import_env_variables({ envText: "..." })
// 2. Create project
create_project({ name: "autoclient", repoUrl: "github.com/me/autoclient" })
// 3. Link services
link_services_to_project({
projectName: "autoclient",
services: ["Stripe", "Supabase", "OpenAI"]
})
// 4. Get .env for deployment
get_envs_for_project({ projectName: "autoclient", environment: "prod" })Categories
Category | Examples |
| OpenAI, Anthropic, Google AI |
| Supabase, PlanetScale, MongoDB |
| Stripe, PayPal, SumUp |
| Auth0, Clerk, Firebase |
| SendGrid, Mailjet, Resend |
| Vercel, Netlify, Railway |
| S3, Cloudflare R2, Cloudinary |
| Sentry, Datadog |
Authentication
Your API key creates isolated storage. Generate one:
openssl rand -hex 16Pass via:
Header:
x-api-key: your-keyBearer:
Authorization: Bearer your-keyQuery:
?apikey=your-key
Self-Hosting
git clone https://github.com/samihalawa/envmem-mcp.git
cd envmem-mcp
npm install
# Create Cloudflare resources
wrangler d1 create env-reference-db
wrangler vectorize create env-embeddings --dimensions=768 --metric=cosine
# Apply migrations
wrangler d1 migrations apply env-reference-db --remote
# Deploy
wrangler deployTech Stack
Runtime: Cloudflare Workers
Embeddings: Workers AI (bge-base-en-v1.5, 768-dim)
Vector Search: Cloudflare Vectorize
Database: Cloudflare D1 (SQLite + FTS5)
Protocol: MCP (Model Context Protocol)
License
ISC
Built with care for developers who forget their env var names.
This server cannot be installed
Maintenance
Latest Blog Posts
- 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/samihalawa/envmem-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server