MCP Server for Trading212 platform
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add t212 --env T212_API_KEY='<T212_API_KEY>' --env T212_API_SECRET='<T212_API_SECRET>' -- npx t212-mcp-server~/.codex/config.toml
[mcp_servers.t212]
command = "npx"
args = ["t212-mcp-server"]
env = { T212_API_KEY = "<T212_API_KEY>", T212_API_SECRET = "<T212_API_SECRET>" }
# codex mcp add t212 --env T212_API_KEY='<T212_API_KEY>' --env T212_API_SECRET='<T212_API_SECRET>' -- npx t212-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"t212": {
"command": "npx",
"args": [
"t212-mcp-server"
],
"env": {
"T212_API_KEY": "<T212_API_KEY>",
"T212_API_SECRET": "<T212_API_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"t212": {
"type": "stdio",
"command": "npx",
"args": [
"t212-mcp-server"
],
"env": {
"T212_API_KEY": "<T212_API_KEY>",
"T212_API_SECRET": "<T212_API_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"t212": {
"command": "npx",
"args": [
"t212-mcp-server"
],
"env": {
"T212_API_KEY": "<T212_API_KEY>",
"T212_API_SECRET": "<T212_API_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"t212": {
"command": "npx",
"args": [
"t212-mcp-server"
],
"env": {
"T212_API_KEY": "<T212_API_KEY>",
"T212_API_SECRET": "<T212_API_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"t212": {
"command": "npx",
"args": [
"t212-mcp-server"
],
"env": {
"T212_API_KEY": "<T212_API_KEY>",
"T212_API_SECRET": "<T212_API_SECRET>"
}
}
}
}需要的环境变量
T212_API_KEYT212_API_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。