You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** If both `VANTA_ENV_FILE` and the direct environment variables are set, the direct environment variables take precedence.
57
73
58
74
> **Note:** Vanta currently allows only a single active access_token per Application. [More info here](https://developer.vanta.com/docs/api-access-setup#authentication-and-token-retrieval)
59
75
60
76
### Usage with Claude Desktop
61
77
62
78
Add the server to your `claude_desktop_config.json`:
63
79
80
+
**Option 1: Using VANTA_ENV_FILE**
81
+
64
82
```json
65
83
{
66
84
"mcpServers": {
@@ -75,12 +93,31 @@ Add the server to your `claude_desktop_config.json`:
75
93
}
76
94
```
77
95
96
+
**Option 2: Using Direct Environment Variables**
97
+
98
+
```json
99
+
{
100
+
"mcpServers": {
101
+
"vanta": {
102
+
"command": "npx",
103
+
"args": ["-y", "@vantasdk/vanta-mcp-server"],
104
+
"env": {
105
+
"VANTA_CLIENT_ID": "your_client_id_here",
106
+
"VANTA_CLIENT_SECRET": "your_client_secret_here"
107
+
}
108
+
}
109
+
}
110
+
}
111
+
```
112
+
78
113
If you are unfamiliar with setting up MCP servers in Claude Desktop, [here is an example](https://modelcontextprotocol.io/quickstart/user) in the official MCP documentation.
79
114
80
115
### Usage with Cursor
81
116
82
117
Add the server to your Cursor MCP settings:
83
118
119
+
**Option 1: Using VANTA_ENV_FILE**
120
+
84
121
```json
85
122
{
86
123
"mcpServers": {
@@ -95,11 +132,32 @@ Add the server to your Cursor MCP settings:
95
132
}
96
133
```
97
134
135
+
**Option 2: Using Direct Environment Variables**
136
+
137
+
```json
138
+
{
139
+
"mcpServers": {
140
+
"Vanta": {
141
+
"command": "npx",
142
+
"args": ["-y", "@vantasdk/vanta-mcp-server"],
143
+
"env": {
144
+
"VANTA_CLIENT_ID": "your_client_id_here",
145
+
"VANTA_CLIENT_SECRET": "your_client_secret_here"
146
+
}
147
+
}
148
+
}
149
+
}
150
+
```
151
+
98
152
### Environment Variables
99
153
100
-
-`VANTA_ENV_FILE` (required): Absolute path to the JSON file containing your OAuth credentials
154
+
-`VANTA_ENV_FILE` (optional): Absolute path to the JSON file containing your OAuth credentials
155
+
-`VANTA_CLIENT_ID` (optional): Your Vanta OAuth client ID (takes precedence if set)
156
+
-`VANTA_CLIENT_SECRET` (optional): Your Vanta OAuth client secret (takes precedence if set)
101
157
-`REGION` (optional): API region - `us`, `eu`, or `aus` (defaults to `us`)
102
158
159
+
> You must provide either `VANTA_ENV_FILE`**or** both `VANTA_CLIENT_ID` and `VANTA_CLIENT_SECRET`.
0 commit comments