store-api-keyLABSCO SUMMARY
Solves the .env problem the way a keychain already does.
The argument in the README is a real one: .env files are gitignored, which makes them invisible to collaborators and to the assistant that needs the key. Putting the keys somewhere the assistant can ask for them by name fixes both. The security model depends entirely on this staying local — the README is blunt that the Smithery-hosted deployment is a demo and should not hold real keys.
What it is
A local credential store exposed over MCP. Keys live in the macOS Keychain — or in AES-256-GCM encrypted file storage on Windows, Linux and Docker — and an assistant asks for one by name when it needs it.
What you get
- store-api-key saves a key under a name you choose
- get-api-key retrieves it by that name
- list-api-keys enumerates what is stored, and delete-api-key removes one
- The same keys are reachable from every project, so a rotation is one update rather than one per repository
- A CLI covers the same ground from the terminal: api-key list, api-key get, api-key store, api-key delete
- Storage picks itself per platform — Keychain on macOS, encrypted file storage elsewhere, in-memory for testing — and SERVEMYAPI_STORAGE_TYPE overrides the choice
- HTTP and SSE transports exist behind Bearer token authentication set through SERVEAPI_AUTH_KEY
Requirements
A checkout built with npm install and npm run build, then run as a stdio server with npm start, or over HTTP with node dist/server.js. On macOS the Keychain asks for permission the first time. File storage requires an ENCRYPTION_KEY, and the HTTP transport requires SERVEAPI_AUTH_KEY.
Setup effort
Build from source — git clone https://github.com/Jktfe/servemyapi.git
USE CASES
Giving the assistant a key it needs mid-task
It asks for the key by name rather than you pasting it into the chat.
Onboarding onto a project
The keys are already in the store, so setup is not a hunt for someone's .env.
Rotating a credential
Store the new value once and every project that reads it by name follows.
4 tools
Listed in project docs. Your client may show a different list.
get-api-keydelete-api-keylist-api-keysBEFORE YOU INSTALL
What to know first
Tools you get
4 tools named in the project's documentation.
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
# Clone the repository
git clone https://github.com/Jktfe/servemyapi.git
cd servemyapi
# Install dependencies
npm install
# Build the project
npm run buildMCP Clients
Claude Desktop
{
"mcpServers": {
"serveMyAPI": {
"command": "node",
"args": [
"<YOUR_PATH_TO_SERVEMYAPI>/dist/index.js"
]
}
}
}