Personal MCP server for securely storing and accessing API keys across projects using the macOS Keychain
Personal MCP server for securely storing and accessing API keys across projects using the macOS Keychain. The servemyapi mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 3 defined tools rather than through you.
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:
Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
Everything the assistant can do here goes through one of these:
name — The name/identifier for the API keykey — The API key to storeWindsurf — 1. Open Windsurf editor and navigate to Settings 2. Add ServeMyAPI to your MCP server configuration using the example inYou will need 5 environment variables: SERVEMYAPI_STORAGE_TYPE, STORAGE_DIR, SERVEAPI_AUTH_KEY, ENCRYPTION_KEY, ALLOWED_ORIGINS. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. ServeMyAPI's toolset — name, key, Windsurf — is a fair guide to whether it matches your workflow. It is maintained by Jktfe; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| name | The name/identifier for the API key |
| key | The API key to store |
| Windsurf | 1. Open Windsurf editor and navigate to Settings 2. Add ServeMyAPI to your MCP server configuration using the example in examples/windsurf_config.json 3. Adapt the paths to your local installation |
{
"mcpServers": {
"serveMyAPI": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/servemyapi/dist/index.js"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| SERVEMYAPI_STORAGE_TYPE | Configuration value read at startup. | Optional |
| STORAGE_DIR | Filesystem location the server is allowed to use. | Optional |
| SERVEAPI_AUTH_KEY | Credential the server authenticates with. | Yes |
| ENCRYPTION_KEY | Credential the server authenticates with. | Yes |
| ALLOWED_ORIGINS | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.