Install guide · Cursor
Install x-mcp-ai for Cursor
Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "ivanbbaev-x-mcp": { "command": "npx", "args": [ "-y", "x-mcp-ai@0.8.0" ], "env": { "X_MCP_AUTH_MODE": "", "X_MCP_CLIENT_ID": "", "X_MCP_CLIENT_SECRET": "YOUR_X_MCP_CLIENT_SECRET", "X_MCP_BEARER_TOKEN": "YOUR_X_MCP_BEARER_TOKEN", "X_MCP_TOKEN_FILE": "", "X_MCP_TOKEN_KEYCHAIN": "", "X_MCP_POLICY": "", "X_MCP_POLICY_ALLOW": "", "X_MCP_POLICY_DENY": "", "X_MCP_HIDE_DENIED": "", "X_MCP_MEDIA_DIR": "", "X_MCP_AVAILABILITY": "", "X_MCP_PROFILES_FILE": "", "X_MCP_PROFILE": "", "X_MCP_TIMEOUT_MS": "", "X_MCP_LOG_LEVEL": "", "X_MCP_CREDIT_BUDGET": "", "X_MCP_BUDGET_MODE": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |