﻿---
title: "Helicone 本地 stdio MCP"
filename: "~/.codex/config.toml"
canonical: /templates/mcp-helicone-stdio/
---

# Helicone 本地 stdio MCP

通过 npx 启动本地 stdio 服务，使用 env_vars 转发 HELICONE_API_KEY。欧盟账号需注意当前服务基址的兼容限制。

```
codex mcp add helicone -- npx @helicone/mcp@latest

[mcp_servers.helicone]
command = "npx"
args = ["@helicone/mcp@latest"]
env_vars = ["HELICONE_API_KEY"]
enabled = true
startup_timeout_sec = 60

# 不要：
# [mcp_servers.helicone.env]
# HELICONE_API_KEY = "sk-helicone-xxxxxxx"
# codex mcp login helicone
# url = "https://api.helicone.ai"

```
