Back to MCP Catalog

ServeMyAPI MCP Server

Developer ToolsTypeScript
Securely store and access API keys across projects using macOS Keychain
Available Tools

store-api-key

Store an API key in the macOS Keychain

namekey

get-api-key

Retrieve an API key from the macOS Keychain

name

list-api-keys

List all stored API keys in the macOS Keychain

delete-api-key

Delete an API key from the macOS Keychain

name

ServeMyAPI is a macOS-specific tool that provides secure storage and retrieval of API keys through the macOS Keychain. It eliminates the need for storing sensitive credentials in .env files, allowing developers to access the same keys across multiple projects while maintaining security. With ServeMyAPI, you can use natural language to store and retrieve API keys when working with LLMs like Claude. This solves common problems like hidden context in Git repositories, LLM integration challenges, and cross-project consistency issues when managing API credentials.

Overview

ServeMyAPI is a personal Model Context Protocol (MCP) server designed specifically for macOS users who want to securely manage their API keys. By leveraging the macOS Keychain for storage, it provides a secure and convenient way to access credentials across multiple projects without exposing them in configuration files.

Installation

To install ServeMyAPI:

  1. Clone the repository:

    git clone https://github.com/Jktfe/serveMyAPI.git
    cd serveMyAPI
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    
  4. Optionally, install the CLI globally:

    npm link
    

Usage Options

CLI Interface

ServeMyAPI includes a command-line interface for quick key management:

# List all stored API keys
api-key list

# Get a specific API key
api-key get github_token

# Store a new API key
api-key store github_token ghp_123456789abcdefg

# Delete an API key
api-key delete github_token

# Display help
api-key help

Running as a stdio Server

For simple integration with tools like Claude Desktop:

npm start

Running as an HTTP Server

For applications requiring HTTP access:

node dist/server.js

This starts the server on port 3000 (or the port specified in the PORT environment variable).

Using with Smithery

ServeMyAPI is available as a hosted service on Smithery. You can integrate it with your applications using the Smithery SDK:

import { createTransport } from "@smithery/sdk/transport.js"
import { Client } from "@modelcontextprotocol/sdk/client/index.js"

const transport = createTransport("https://server.smithery.ai/@Jktfe/servemyapi")
const client = new Client({
  name: "Test client",
  version: "1.0.0"
})

await client.connect(transport)
const tools = await client.listTools()

Client Configuration

Claude Desktop

To use ServeMyAPI with Claude Desktop:

  1. Locate or create the Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add ServeMyAPI to the mcpServers section:

    {
      "mcpServers": {
        "serveMyAPI": {
          "command": "node",
          "args": [
            "/ABSOLUTE/PATH/TO/servemyapi/dist/index.js"
          ]
        }
      }
    }
    
  3. Replace /ABSOLUTE/PATH/TO/servemyapi with the actual path to your ServeMyAPI installation.

  4. Restart Claude Desktop.

Windsurf

To use ServeMyAPI with Windsurf:

  1. Open Windsurf editor and navigate to Settings
  2. Add ServeMyAPI to your MCP server configuration
  3. Adapt the paths to your local installation

Security Notes

ServeMyAPI is specifically designed for macOS and relies on the macOS Keychain for secure credential storage. It is not compatible with Windows or Linux operating systems. The macOS Keychain provides encrypted storage with access controls tied to your user account, ensuring that your API keys remain protected.

Related MCPs

Apple Shortcuts
Developer ToolsJavaScript

Control Apple Shortcuts automations from AI assistants

Clojars Dependency Lookup
Developer ToolsJavaScript

Fetch dependency information from Clojars, the Clojure community's artifact repository

Simple Timeserver
Developer ToolsPython

Provides Claude with current time and timezone information

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.