MCP.so
登录

offprompt MCP Server已验证已精选

@offprompt

基本信息

分类

开发工具

许可证

MIT

作者

offprompt

提交者

Valerio Leo

关于 offprompt MCP Server

MCP server that lets Claude Code, Cursor or Codex ask you for API keys on a local page and write them to .env. The agent only ever sees key names.

offprompt MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "offprompt": {
      "command": "npx",
      "args": [
        "-y",
        "offprompt",
        "mcp"
      ]
    }
  }
}

offprompt MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is offprompt?

offprompt is an open-source (MIT) MCP server that keeps API keys out of your AI agent's context. When Claude Code, Cursor, Codex or any MCP client needs a secret, it asks offprompt. A page opens in your browser on 127.0.0.1, you type or paste the value there, and offprompt writes it straight into .env.local. The transcript, the model's context and the provider's logs only ever see the key's name.

How to use offprompt?

Run npx offprompt init in your project (Node 22 or later). It detects your agents and adds the MCP server for them. To add it by hand, use:

{"mcpServers":{"offprompt":{"command":"npx","args":["-y","offprompt","mcp"]}}}

Then ask your agent to do something that needs a key, for example "add Stripe webhooks". It calls collect_secret, the page opens, and you fill it in.

Key features

  • Values never enter the chat. The agent gets the key names and a fingerprint back, never the value.
  • Local page on 127.0.0.1. Nothing is sent to a third party, and the page loads no remote code.
  • 65 provider formats. Stripe, OpenAI, Anthropic, AWS, Supabase and more are checked as you type, so the wrong key is caught before it's written.
  • Works in cloud sandboxes. Inside a remote sandbox it reaches your browser through a Cloudflare quick tunnel.
  • Three tools: collect_secret, await_secret and cancel_secret.

Use cases

  • Give Claude Code, Cursor or Codex a new API key without pasting it into the chat.
  • Set up a project's .env with several keys in one go.
  • Hand keys to an agent running in a cloud sandbox.

常见问题

1

Does the agent ever see my key?

No. It only sees the key's name and whether the write succeeded.

2

Where are the values stored?

In your project's `.env.local` (or the file you choose), the same place you'd put them by hand.

3

Which clients does it work with?

Any MCP client, including Claude Code, Cursor and Codex. Try it in the [playground](https://offprompt.dev/playground) or read the [docs](https://docs.offprompt.dev).

评论

开发工具 分类下的更多 MCP 服务器