-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.env.example
More file actions
33 lines (27 loc) · 1.6 KB
/
Copy path.env.example
File metadata and controls
33 lines (27 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Twelve Data MCP Server — copy to .env and fill in values
# OAuth credentials (register an app at twelvedata.com to get these)
MCP_DATA_TWELVE_DATA_CLIENT_ID=
MCP_DATA_TWELVE_DATA_CLIENT_SECRET=
# Redirect URI registered in your OAuth app.
# Default: http://localhost:8765/callback
# For ngrok: set to your ngrok URL, e.g. https://xxxx.ngrok-free.app/callback
# The local callback server always listens on port 8765 — ngrok just tunnels to it.
MCP_DATA_TWELVE_DATA_REDIRECT_URI=https://xxxx.ngrok-free.dev/callback
# --- Remote multi-user OAuth (ChatGPT / Claude connectors) -------------------
# Set MCP_DATA_PUBLIC_URL to the externally reachable base URL to turn this server
# into its own OAuth Authorization Server (DCR + discovery). Clients then log in
# via standard OAuth; identity rides in a Bearer token on every request, so it
# survives server restarts and ChatGPT's per-call session churn.
# MCP_DATA_PUBLIC_URL=https://mcp-data.twelvedata.com
# The upstream login reuses the /callback redirect URI (same one used below),
# so no extra redirect URI needs registering — just ensure <MCP_DATA_PUBLIC_URL>/callback
# is among the Twelve Data OAuth app's allowed redirect URIs.
# Leave MCP_DATA_PUBLIC_URL empty for stdio / local Claude Desktop (uses oauth_login).
MCP_DATA_PUBLIC_URL=
# Token lifetimes (seconds) — optional overrides
# MCP_OAUTH_ACCESS_TTL=3600
# MCP_OAUTH_REFRESH_TTL=2592000
# Redis — required when MCP_DATA_PUBLIC_URL is set (stores OAuth clients/codes/tokens)
REDIS_URL=redis://localhost:6379
# Optional: skip OAuth entirely and use a static API key (single-tenant)
# TWELVE_DATA_API_KEY=