Local MCP server to securely store and access API keys using macOS Keychain or encrypted storage on other platforms.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by ServeMyAPI.
nameThe name/identifier for the API key
keyThe API key to store
A personal MCP (Model Context Protocol) server for securely storing and accessing API keys across projects using the macOS Keychain.
🔒 SECURITY FIRST: ServeMyAPI is designed to run LOCALLY on your machine. API keys are NEVER transmitted over the internet and should NEVER be deployed to cloud services. Read the critical security guidelines before using.
Cross-Platform Support: ServeMyAPI now includes a storage abstraction layer that enables support for multiple platforms:
- macOS: Uses the native Keychain (default)
- Windows/Linux: Uses encrypted file storage
- Docker: Automatically uses encrypted file storage
- Memory: Available for testing and temporary storage
ServeMyAPI allows you to store API keys securely in the macOS Keychain and access them through a consistent MCP interface. This makes it easy to:
Using ServeMyAPI instead of traditional .ENV files solves several common problems:
GitHub Security Conflicts:
LLM Integration Challenges:
Cross-Project Consistency:
This approach gives you the best of both worlds: secure storage of sensitive credentials without sacrificing visibility and accessibility for your AI tools.
ServeMyAPI comes with a command-line interface for quick key management directly from your terminal:
This is the simplest way to use ServeMyAPI as an MCP server, especially when working with Claude Desktop:
For applications that require HTTP access:
This will start the server on port 3000 (or the port specified in the PORT environment variable).
DO NOT USE THE SMITHERY HOSTED VERSION for storing real API keys. The Smithery deployment exists for demonstration purposes only. Using it would:
ServeMyAPI is designed to run LOCALLY on your machine only. The entire security model depends on keys never leaving your local environment.
ServeMyAPI works with any MCP-compatible client. Example configuration files are provided in the examples directory.
To use ServeMyAPI with Claude Desktop:
Locate or create the Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%AppData%\Claude\claude_desktop_config.jsonAdd ServeMyAPI to the mcpServers section (you can copy from examples/claude_desktop_config.json):
Replace /ABSOLUTE/PATH/TO/servemyapi with the actual path to your ServeMyAPI installation.
Restart Claude Desktop.
To use ServeMyAPI with Windsurf:
examples/windsurf_config.jsonServeMyAPI exposes the following tools:
Store an API key in the keychain.
Parameters:
name: The name/identifier for the API keykey: The API key to storeExample (from Claude):
Retrieve an API key from the keychain.
Parameters:
name: The name/identifier of the API key to retrieveExample (from Claude):
Delete an API key from the keychain.
Parameters:
name: The name/identifier of the API key to deleteExample (from Claude):
List all stored API keys.
No parameters required.
Example (from Claude):
ServeMyAPI automatically selects the best storage provider for your platform:
You can override the automatic detection:
Keychain Storage (macOS only)
File Storage (Cross-platform)
~/.servemyapi/keys.json.enc by defaultENCRYPTION_KEY environment variableMemory Storage (Testing)
When using the HTTP/SSE transport:
Include the Bearer token in requests:
openssl rand -base64 32 to generateFor detailed security configuration, see docs/SECURITY.md.
Future plans for ServeMyAPI include:
Code Scanner Tool: A tool that automatically scans your codebase for API endpoints, sensitive URLs, and environment variables, then suggests names to store them in the Keychain. This would allow developers to continue using .ENV files in their regular workflow while ensuring credentials are also available to LLMs and other tools when needed.
Cross-Platform Support: Investigating secure credential storage options for Windows and Linux to make ServeMyAPI more widely accessible.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/jktfe-servemyapi)<a href="https://allmcps.com/mcp/jktfe-servemyapi"><img src="https://allmcps.com/api/badge/jktfe-servemyapi?style=directory" alt="ServeMyAPI on AllMCPs" /></a>