KosmoKrator

data

Brex MCP Gateway for AI Agents

Expose Brex tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

Brex MCP Gateway

Expose Brex to MCP clients with `kosmokrator mcp:serve --integration=brex`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server.

Install KosmoKrator
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
Install gateway entry
kosmokrator mcp:gateway:install --integration=brex --write=deny --json
MCP configuration
{
  "mcpServers": {
    "kosmokrator-brex": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=brex",
        "--write=deny"
      ]
    }
  }
}
Serve manually
kosmokrator mcp:serve --integration=brex --write=deny

Client Notes

Use one scoped MCP gateway entry, then adapt the config location to the client or framework.

Claude Code Connect local KosmoKrator integrations to Claude Code through one scoped MCP gateway entry. Claude Code can launch the local kosmo binary directly from the project MCP config.
Cursor Expose selected local integrations to Cursor through KosmoKrator without configuring each service as its own MCP server. Use the same KosmoKrator install and integration credentials that power terminal and headless runs.
Codex Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy. Keep write access denied or ask-based unless the workspace is trusted.
OpenAI Agents SDK Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway. Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
Claude Agent SDK Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server. Use a narrow integration list so the agent does not load unrelated tools.
Vercel AI SDK Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts. Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
LangChain Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls. Keep the gateway scoped to the integration and operation class needed by the chain.
LangGraph Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions. Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
CrewAI Expose KosmoKrator integrations to CrewAI workers as scoped local tools. Use per-worker integration scopes to avoid giving every worker every tool.
Generic MCP Clients Connect any stdio-compatible MCP client to local KosmoKrator integration tools. Start with read-only write policy and expand only for trusted projects.

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names.

MCP toolSource functionType
integration__brex__brex_accounting_create_integration brex.brex_accounting_create_integration Write write
integration__brex__brex_accounting_disconnect_integration brex.brex_accounting_disconnect_integration Write write
integration__brex__brex_accounting_reactivate_integration brex.brex_accounting_reactivate_integration Write write
integration__brex__brex_accounting_get_accounting_record brex.brex_accounting_get_accounting_record Read read
integration__brex__brex_accounting_query_accounting_records brex.brex_accounting_query_accounting_records Read read
integration__brex__brex_accounting_report_accounting_export_results brex.brex_accounting_report_accounting_export_results Write write
integration__brex__brex_budgets_list_budget_programs brex.brex_budgets_list_budget_programs Read read
integration__brex__brex_budgets_get_budget_program_by_id brex.brex_budgets_get_budget_program_by_id Read read
integration__brex__brex_budgets_list_budgets brex.brex_budgets_list_budgets Read read
integration__brex__brex_budgets_create_budget brex.brex_budgets_create_budget Write write
integration__brex__brex_budgets_get_budget_by_id brex.brex_budgets_get_budget_by_id Read read
integration__brex__brex_budgets_update_budget brex.brex_budgets_update_budget Write write
integration__brex__brex_budgets_archive_budget brex.brex_budgets_archive_budget Write write
integration__brex__brex_budgets_list_spend_budgets brex.brex_budgets_list_spend_budgets Read read
integration__brex__brex_budgets_create_spend_budget brex.brex_budgets_create_spend_budget Write write
integration__brex__brex_budgets_get_spend_budget_by_id brex.brex_budgets_get_spend_budget_by_id Read read
integration__brex__brex_budgets_update_spend_budget brex.brex_budgets_update_spend_budget Write write
integration__brex__brex_budgets_archive_spend_budget brex.brex_budgets_archive_spend_budget Write write
integration__brex__brex_budgets_list_spend_limits brex.brex_budgets_list_spend_limits Read read
integration__brex__brex_budgets_create_spend_limit brex.brex_budgets_create_spend_limit Write write
integration__brex__brex_budgets_get_spend_limit_by_id brex.brex_budgets_get_spend_limit_by_id Read read
integration__brex__brex_budgets_update_spend_limit brex.brex_budgets_update_spend_limit Write write
integration__brex__brex_budgets_archive_spend_limit brex.brex_budgets_archive_spend_limit Write write
integration__brex__brex_expenses_list_expenses brex.brex_expenses_list_expenses Read read
integration__brex__brex_expenses_list_expenses_1 brex.brex_expenses_list_expenses_1 Read read
integration__brex__brex_expenses_receipt_match brex.brex_expenses_receipt_match Write write
integration__brex__brex_expenses_get_card_expense brex.brex_expenses_get_card_expense Read read
integration__brex__brex_expenses_update_expense brex.brex_expenses_update_expense Write write
integration__brex__brex_expenses_receipt_upload brex.brex_expenses_receipt_upload Write write
integration__brex__brex_expenses_get_expense brex.brex_expenses_get_expense Read read
integration__brex__brex_fields_list_fields brex.brex_fields_list_fields Read read
integration__brex__brex_fields_create_field brex.brex_fields_create_field Write write
integration__brex__brex_fields_list_field_values brex.brex_fields_list_field_values Read read
integration__brex__brex_fields_update_field_values brex.brex_fields_update_field_values Write write
integration__brex__brex_fields_create_field_values brex.brex_fields_create_field_values Write write
integration__brex__brex_fields_delete_field_values brex.brex_fields_delete_field_values Write write
integration__brex__brex_fields_get_field_value_by_id brex.brex_fields_get_field_value_by_id Read read
integration__brex__brex_fields_get_field_by_id brex.brex_fields_get_field_by_id Read read
integration__brex__brex_fields_update_field brex.brex_fields_update_field Write write
integration__brex__brex_fields_delete_field brex.brex_fields_delete_field Write write
integration__brex__brex_onboarding_list_referrals brex.brex_onboarding_list_referrals Read read
integration__brex__brex_onboarding_create_referral_request brex.brex_onboarding_create_referral_request Write write
integration__brex__brex_onboarding_get_referral brex.brex_onboarding_get_referral Read read
integration__brex__brex_onboarding_create_document brex.brex_onboarding_create_document Write write
integration__brex__brex_onboarding_process_delayed_eindocument brex.brex_onboarding_process_delayed_eindocument Write write
integration__brex__brex_payments_create_incoming_transfer brex.brex_payments_create_incoming_transfer Write write
integration__brex__brex_payments_list_linked_accounts brex.brex_payments_list_linked_accounts Read read
integration__brex__brex_payments_list_transfers brex.brex_payments_list_transfers Read read
integration__brex__brex_payments_create_transfer brex.brex_payments_create_transfer Write write
integration__brex__brex_payments_get_transfers_by_id brex.brex_payments_get_transfers_by_id Read read
integration__brex__brex_payments_list_vendors brex.brex_payments_list_vendors Read read
integration__brex__brex_payments_create_vendor brex.brex_payments_create_vendor Write write
integration__brex__brex_payments_get_vendor_by_id brex.brex_payments_get_vendor_by_id Read read
integration__brex__brex_payments_update_vendor brex.brex_payments_update_vendor Write write
integration__brex__brex_payments_delete_vendor brex.brex_payments_delete_vendor Write write
integration__brex__brex_team_list_cards_by_user_id brex.brex_team_list_cards_by_user_id Read read
integration__brex__brex_team_create_card brex.brex_team_create_card Write write
integration__brex__brex_team_get_card_by_id brex.brex_team_get_card_by_id Read read
integration__brex__brex_team_update_card brex.brex_team_update_card Write write
integration__brex__brex_team_lock_card brex.brex_team_lock_card Write write
integration__brex__brex_team_get_card_number brex.brex_team_get_card_number Read read
integration__brex__brex_team_email_card_number brex.brex_team_email_card_number Write write
integration__brex__brex_team_terminate_card brex.brex_team_terminate_card Write write
integration__brex__brex_team_unlock_card brex.brex_team_unlock_card Write write
integration__brex__brex_team_get_company brex.brex_team_get_company Read read
integration__brex__brex_team_list_departments brex.brex_team_list_departments Read read
integration__brex__brex_team_create_department brex.brex_team_create_department Write write
integration__brex__brex_team_get_department_by_id brex.brex_team_get_department_by_id Read read
integration__brex__brex_team_list_legal_entities brex.brex_team_list_legal_entities Read read
integration__brex__brex_team_get_legal_entity brex.brex_team_get_legal_entity Read read
integration__brex__brex_team_list_locations brex.brex_team_list_locations Read read
integration__brex__brex_team_create_location brex.brex_team_create_location Write write
integration__brex__brex_team_get_location_by_id brex.brex_team_get_location_by_id Read read
integration__brex__brex_team_list_titles brex.brex_team_list_titles Read read
integration__brex__brex_team_create_title brex.brex_team_create_title Write write
integration__brex__brex_team_get_title_by_id brex.brex_team_get_title_by_id Read read
integration__brex__brex_team_list_users brex.brex_team_list_users Read read
integration__brex__brex_team_create_user brex.brex_team_create_user Write write
integration__brex__brex_team_get_me brex.brex_team_get_me Read read
integration__brex__brex_team_get_user_by_id brex.brex_team_get_user_by_id Read read
integration__brex__brex_team_update_user brex.brex_team_update_user Write write
integration__brex__brex_team_get_user_limit brex.brex_team_get_user_limit Read read
integration__brex__brex_team_set_user_limit brex.brex_team_set_user_limit Write write
integration__brex__brex_transactions_list_card_accounts brex.brex_transactions_list_card_accounts Read read
integration__brex__brex_transactions_list_primary_card_statements brex.brex_transactions_list_primary_card_statements Read read
integration__brex__brex_transactions_list_accounts brex.brex_transactions_list_accounts Read read
integration__brex__brex_transactions_get_primary_account brex.brex_transactions_get_primary_account Read read
integration__brex__brex_transactions_get_account brex.brex_transactions_get_account Read read
integration__brex__brex_transactions_list_cash_statements brex.brex_transactions_list_cash_statements Read read
integration__brex__brex_transactions_list_primary_card_transactions brex.brex_transactions_list_primary_card_transactions Read read
integration__brex__brex_transactions_list_cash_transactions brex.brex_transactions_list_cash_transactions Read read
integration__brex__brex_travel_list_trips brex.brex_travel_list_trips Read read
integration__brex__brex_travel_get_trip brex.brex_travel_get_trip Read read
integration__brex__brex_travel_list_trip_bookings brex.brex_travel_list_trip_bookings Read read
integration__brex__brex_travel_get_booking brex.brex_travel_get_booking Read read
integration__brex__brex_webhooks_list_webhook_subscriptions brex.brex_webhooks_list_webhook_subscriptions Read read
integration__brex__brex_webhooks_create_webhook_subscription brex.brex_webhooks_create_webhook_subscription Write write
integration__brex__brex_webhooks_list_webhook_groups brex.brex_webhooks_list_webhook_groups Read read
integration__brex__brex_webhooks_create_webhook_group brex.brex_webhooks_create_webhook_group Write write
integration__brex__brex_webhooks_get_webhook_group brex.brex_webhooks_get_webhook_group Read read
integration__brex__brex_webhooks_delete_webhook_group brex.brex_webhooks_delete_webhook_group Write write
integration__brex__brex_webhooks_add_webhook_group_members brex.brex_webhooks_add_webhook_group_members Write write
integration__brex__brex_webhooks_list_webhook_group_members brex.brex_webhooks_list_webhook_group_members Read read
integration__brex__brex_webhooks_remove_webhook_group_members brex.brex_webhooks_remove_webhook_group_members Write write
integration__brex__brex_webhooks_list_webhook_secrets brex.brex_webhooks_list_webhook_secrets Read read
integration__brex__brex_webhooks_get_webhook_subscription brex.brex_webhooks_get_webhook_subscription Read read
integration__brex__brex_webhooks_update_webhook_subscription brex.brex_webhooks_update_webhook_subscription Write write
integration__brex__brex_webhooks_delete_webhook_subscription brex.brex_webhooks_delete_webhook_subscription Write write

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.