prophetkey-mcp

v2.1.0
io.github.LBZ558/prophetkey-mcp Checked 3 days ago Published 1 day ago

ProphetKey MCP bridge - encrypted local-first API key vault for AI agents, keys never exposed

Connect Claude Code, Cursor, Windsurf and other MCP-compatible AI agents to ProphetKey's local proxy. The agent calls prophetkey_* tools over stdio; the bridge forwards them to ProphetKey's local HTTP proxy (127.0.0.1:1421/mcp). Real API keys never leave your device and are never exposed to the agent. Open ProphetKey → Settings → MCP Server and copy the bearer token from the generated config. with environment variable PROPHETKEY_MCP_TOKEN=your-token-here.

Summary extracted from the README.

prophetkey-mcp

Stdio MCP bridge for ProphetKey — an offline-first, encrypted API key vault for AI agents.

Connect Claude Code, Cursor, Windsurf and other MCP-compatible AI agents to ProphetKey's local proxy. The agent calls prophetkey_* tools over stdio; the bridge forwards them to ProphetKey's local HTTP proxy (127.0.0.1:1421/mcp). Real API keys never leave your device and are never exposed to the agent.

AI agent (stdio)  ──►  prophetkey-mcp   ──►  ProphetKey proxy
 Claude Code /                                      │
 Cursor / Windsurf        Bearer token               │ injects real key
 (never sees key)                                    ▼
                                      real API call has no key handling

Requirements

Quick start

1. Get your token

Open ProphetKey → Settings → MCP Server and copy the bearer token from the generated config.

2. Configure your AI agent

Claude Code (~/.claude/settings.json):

{
  "mcpServers": {
    "prophetkey": {
      "command": "npx",
      "args": ["-y", "prophetkey-mcp"],
      "env": { "PROPHETKEY_MCP_TOKEN": "your-token-here" }
    }
  }
}

Cursor (Project → MCP → Add):

npx -y prophetkey-mcp

with environment variable PROPHETKEY_MCP_TOKEN=your-token-here.

3. Use it

Ask your agent: "list my available API keys" or "call my OpenAI key to summarize this".

Available tools

Tool Description
prophetkey_list_keys List stored keys (returns safe_key identifiers, never real keys)
prophetkey_get_key_info Details for one key (name, provider, safety score, health)
prophetkey_proxy_status Proxy status: running, port, keys count, request stats
prophetkey_health_check Health check across all keys (expiry, usage, security)
prophetkey_make_request Make an API call through the proxy — the proxy injects the real key

Configuration

Env var Default Description
PROPHETKEY_MCP_TOKEN (required) Bearer token from ProphetKey MCP settings
PROPHETKEY_MCP_PORT 1421 Local proxy port
PROPHETKEY_MCP_URL (derived) Full URL override: http://127.0.0.1:1421/mcp

Security

  • Keys never leave your device. All requests stay on 127.0.0.1.
  • The agent never sees real key values. Only safe identifiers pass through; the proxy injects the real key for the outbound call.
  • On-device-first: no cloud, no sync, no third party. See the privacy model for details.

Development

npm test

Runs integration tests against a mock MCP endpoint (auth, forwarding, offline errors).

License

MIT