Skip to main content

Connect to Bastion

Overview

The Bastion MCP server exposes a set of pre-built workflows that let an AI assistant act on your Bastion tenant. Users authenticate with their existing Bastion login (OAuth via Clerk), and all actions respect the role-based permissions configured in the platform.

FieldValue
Server URLhttps://mcp.app.bastion.tech/mcp
TransportHTTP (streamable)
AuthOAuth via your Bastion account
PermissionsInherits your platform role (bastion_user, employee, pentester, auditor)

Available Workflows

Get Compliant

Walks through failing compliance tests and guides you step by step to remediate each one.

Fix Code Security Issues

Identifies critical vulnerabilities across connected repositories and proposes fixes.

Setup Trust Center

Configures your public trust center with company info, FAQs, and SEO metadata.

Setup Dependabot

Enables GitHub Dependabot across all repositories to surface vulnerable dependencies.

Ask Knowledge Base

Answers security and compliance questions using your organization's own policies and documentation.

Setup by Client

Claude Code (CLI)

  1. Add the server

    Run:

    claude mcp add bastion --transport http https://mcp.app.bastion.tech/mcp
  2. Authenticate

    Launch Claude Code:

    claude

    Then run /mcp and follow the OAuth prompt to sign in to Bastion.

  3. Invoke a workflow

    Use a slash command, for example:

    /bastion:get-compliant

Claude Desktop

  1. Open the config file

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the Bastion server

    {
    "mcpServers": {
    "bastion": {
    "transport": "http",
    "url": "https://mcp.app.bastion.tech/mcp"
    }
    }
    }
  3. Restart Claude Desktop

    Quit and relaunch. Bastion will appear in the MCP server list and trigger an OAuth sign-in the first time it is used.

  4. Invoke a workflow

    Ask Claude in natural language, for example: "Use bastion and get me compliant."

Claude.ai

  1. Open Integrations

    Click your profile icon, go to Settings, then Integrations.

  2. Add the integration

    Click Add Integration and paste the server URL:

    https://mcp.app.bastion.tech/mcp
  3. Complete OAuth

    Sign in to Bastion when prompted, then click Save.

Cursor, VS Code, and other clients

Bastion's MCP server works with any client that speaks the Model Context Protocol over HTTP. For Cursor, Roo Code, Augment, VS Code, Gemini CLI, LMStudio, and Codex CLI, add the same server URL (https://mcp.app.bastion.tech/mcp) in the client's MCP configuration and authenticate via OAuth on first use.

tip

Inside the Bastion app, open the Solve with AI modal on any page for client-specific copy-paste configuration snippets.

Permissions

MCP actions run with the same scope as your platform user. For example, an employee can ask the knowledge base a question, but only a bastion_user can generate a trust center or edit compliance controls.

Troubleshooting

The MCP server is not detected by my client

Confirm the server URL is exactly https://mcp.app.bastion.tech/mcp and that the transport is set to http. Some clients cache configuration, so a full restart is often required.

OAuth sign-in loops or fails

Make sure you are signed in to Bastion in your browser with the same account you expect to use in the AI client. Clear cookies for app.bastion.tech and try again.

A workflow says I do not have permission

MCP inherits your Bastion role. Ask your Bastion administrator to assign the role needed for the workflow you are trying to run.