How to Connect BrowserStack Remote MCP to Gemini CLI
Add BrowserStack's remote MCP server to Gemini CLI in about a minute.
Step-by-step
- Edit ~/.gemini/settings.jsonAdd the
mcpServersentry shown above โ Gemini CLI useshttpUrlfor Streamable HTTP endpoints andurlfor legacy SSE. - AuthorizeAdd an
Authorization: Bearer <your-key>header in the server's config โ get the credential from https://www.browserstack.com. - VerifyRestart
gemini, then run/mcp listinside the CLI. Verify in the browser: pastehttps://mcp.browserstack.com/mcpinto remotemcp.net/inspector and run initialize + tools/list.
Troubleshooting OAuth / 401
- A
401 Unauthorizedon first connect is normal โ the endpoint is OAuth-protected; let Gemini CLI finish the browser consent flow. - If the consent window never opens, remove and re-add the server, then retry.
- Check the exact challenge at our OAuth debugger.
- Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
๐ Client-side only โ never leaves your browser.
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"browserstack": {
"url": "https://mcp.browserstack.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}claude mcp add --transport http browserstack https://mcp.browserstack.com/mcp
With credential header:
claude mcp add --transport http browserstack https://mcp.browserstack.com/mcp --header "Authorization: Bearer YOUR_API_KEY"
Or add to .vscode/mcp.json:
{
"servers": {
"browserstack": {
"type": "http",
"url": "https://mcp.browserstack.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://mcp.browserstack.com/mcp - Provide your API key / Bearer token when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"browserstack": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.browserstack.com/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"browserstack": {
"serverUrl": "https://mcp.browserstack.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"browserstack": {
"url": "https://mcp.browserstack.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.codex/config.toml โ Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.browserstack] url = "https://mcp.browserstack.com/mcp" bearer_token_env_var = "BROWSERSTACK_TOKEN"
Add to cline_mcp_settings.json (Cline โ MCP Servers โ Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"browserstack": {
"type": "streamableHttp",
"url": "https://mcp.browserstack.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Add to ~/.gemini/settings.json under mcpServers โ httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"browserstack": {
"httpUrl": "https://mcp.browserstack.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Tools exposed by BrowserStack (0)
| Tool | Safety | Description | Parameters |
|---|
Connect BrowserStack to another client
Other servers for Gemini CLI
GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.
Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.
Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.
Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.
AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ connect and call tools immediately.
Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.