Skip to content

Connectors · Developer & infrastructure

Sourcegraph MCP server for AI agents.

actionlake is an MCP gateway: one remote MCP server that connects Claude and other MCP clients to Sourcegraph and the rest of your systems. It gives your agent 423 Sourcegraph actions (177 reads, 169 writes and 77 that wait for a confirmation) and holds the Sourcegraph credential itself, so the agent never does. It paces Sourcegraph's limits and records every call.

100,000 free calls a month. No card, no email, no password: press Start a free sandbox on the next screen and keep the key it shows you.

claude mcp add --transport http actionlake https://connect.actionlake.com/mcp
the first call
do {  action: "sourcegraph.users.users",  intent: "check which Sourcegraph account is connected"}# List users · read · 1 upstream call
  • 423actionsin one signed file
  • 177readlook, never change
  • 169writecreate and update
  • 77wait for a yesdestructive, confirmed first

Set up

Connect Sourcegraph in three steps.

  1. 01

    Add actionlake to Claude.

    Run the command once in Claude Code; its consent page can create a free sandbox: 100,000 calls a month, no card. In the Claude app, add a custom connector with the URL below and paste your key on the consent page. Creating a new sandbox from the Claude app is not yet tested by us.

    https://connect.actionlake.com/mcp
  2. 02

    Connect Sourcegraph.

    API key. No consent screen: your agent can connect it for you, but the key then passes through your chat. To keep it out of the model's context, paste it in the console instead. actionlake stores what you paste write-only, sealed under your tenant's key.

    • access_tokenSourcegraph access token (User settings > Access tokens; give it the `user:all` scope, or…
    • auth_schemeYour Sourcegraph auth scheme
    • hostWhere your Sourcegraph lives: your host
    account { op: "connections.requirements", service: "sourcegraph" }
    # free: exactly what to paste, and what is found for you
  3. 03

    Make the first call. Check before a write.

    Ask in plain words; Claude picks the action. Before anything changes, check validates the call and prices it, for free.

    do    { action: "sourcegraph.users.users" }# list users · read · 1 upstream callcheck { action: "sourcegraph.users.create_user", input: { … } }# free: inputs, permissions, cost and confirmations, nothing sent

Sourcegraph at a glance

Sign-in
API key. No consent screen: your agent can connect it for you, but the key then passes through your chat. To keep it out of the model's context, paste it in the console instead.
You provide
access_token
Setup fields
auth_schemehost
Limits we pace to
600 calls a minute, per connection
API covered
Sourcegraph 7.x: versioned Sourcegraph API v1 (OpenAPI 3.1) + GraphQL debug API, at your Sourcegraph instance's API base URL, which you enter when connecting
Built from
Sourcegraph's documentation, read 23 October 2026sourcegraph.comGitHubsourcegraph.com
Service file
Version 1.0.0, signed (Ed25519)
Cached reads
171 of 177 reads, for up to 5 minutes; a write clears what it affects
Shared entities
4, so ask can line Sourcegraph up with your other systems
Data
Processed and stored in Sydney, Australia. No US region yet

Capabilities

What an AI agent can do in Sourcegraph.

423 actions in 38 areas. Every one carries its effect, so a key can allow the reads and hold the rest.

  • 177readlook, never change
  • 169writecreate and update
  • 77destructivewait for a confirmation
  1. Batch changes

    42

    11 read · 22 write · 9 destructive

    List batch changes user credential github apps · Apply batch change · List available bulk operations · List batch changes

  2. Site

    40

    22 read · 17 write · 1 destructive

    List site alerts · List background jobs · List gitservers · List notebook exports

  3. Repositories

    31

    19 read · 10 write · 2 destructive

    List repositories · Get repository · List branches · List commits

  4. Code intelligence

    27

    13 read · 10 write · 4 destructive

    List code intelligence configuration policies · Create code intelligence configuration policy · List indexer keys · List precise indexes

  5. Insights

    27

    10 read · 14 write · 3 destructive

    Add insight view to dashboard · Create insights dashboard · Create inventory stats insight · Create line chart search insight

  6. Users

    24

    6 read · 11 write · 7 destructive

    List users · Get current user · Create user · Get user

  7. Code hosts

    21

    11 read · 8 write · 2 destructive

    Add external service · List bitbucket cloud repositories · List bitbucket cloud workspaces · List bitbucket server repositories

  8. Repo permissions

    14

    5 read · 2 write · 7 destructive

    List authorized user repositories · List bitbucket project permission jobs · List permissions sync jobs · Schedule repository permissions sync

30 more areas · 197 actions
  • Feature flags 13
  • Code review 12
  • Executors 11
  • Search contexts 11
  • Prompts 10
  • API entitlements 9
  • Code monitors 9
  • Organizations 9
  • Entitlements 8
  • Oauth clients 8
  • Search 8
  • Code ownership 7
  • Github apps 7
  • API deepsearch 6
  • Model providers 6
  • Packages 6
  • Roles 6
  • Saved searches 6
  • Settings 6
  • Webhooks 6
  • API searchjobs 5
  • API users 5
  • Outbound webhooks 5
  • API explicitrepopermissions 4
  • Slack 4
  • Namespaces 3
  • Access requests 2
  • Access tokens 2
  • Notifications 2
  • API repositories 1

Top actions

The Sourcegraph API, shaped for agents.

The ids your agent types, what each does, and the one name it shares with other systems. 33 of Sourcegraph's 33 action names are shared with at least one other connector, so an agent learns them once.

ActionWhat it doesEffectSame name in
sourcegraph.users.usersList usersList all users.readidentity.user.list474 connectors
sourcegraph.organizations.organizationsList organizationsList all organizations.readidentity.group.list262 connectors
sourcegraph.users.current_userGet current userThe current user.readidentity.current_user.get307 connectors
sourcegraph.users.create_userCreate userCreates a new user account.writeidentity.user.create262 connectors
sourcegraph.organizations.create_organizationCreate organizationCreates an organization.writeidentity.group.create205 connectors
sourcegraph.users.delete_userDelete userDeletes a user account.destructiveidentity.user.delete253 connectors
sourcegraph.repositories.repositoriesList repositoriesList all repositories.readdevops.repository.list28 connectors
sourcegraph.roles.rolesList rolesRoles returns all the roles in the database that matches the arguments.readidentity.role.list184 connectors
sourcegraph.roles.create_roleCreate roleCreates a role.writeidentity.role.create105 connectors
sourcegraph.roles.permissionsList permissionsThis returns all permissions in a paginated format.readidentity.permission.list33 connectors
sourcegraph.repositories.repositoryGet repositoryLooks up a repository by either name or cloneURL.readdevops.repository.get26 connectors
sourcegraph.repositories.branches_listList branchesList a repository's branches, optionally filtered by name.readdevops.branch.list12 connectors

Try it

Prompts to paste into Claude.

Each one names the Sourcegraph actions it will call, so you know what it reads and what it changes before you send it.

  1. Readread

    List our Sourcegraph repositories with their visibility and default branch.

    callssourcegraph.repositories.repositories

  2. Writewrite

    Create user in Sourcegraph. Show me exactly what you will send before you save it.

    callssourcegraph.users.create_user

Governance for Sourcegraph

Destructive actions wait for a yes.

77 Sourcegraph actions are destructive. The first 10:

  • Delete usersourcegraph.users.delete_user
  • Delete organizationsourcegraph.organizations.delete_organization
  • Delete rolesourcegraph.roles.delete_role
  • Delete feature flagsourcegraph.feature_flags.delete_feature_flag
  • Delete webhooksourcegraph.webhooks.delete_webhook
  • Delete saved searchsourcegraph.saved_searches.delete_saved_search
  • Set rolessourcegraph.roles.set_roles
  • Delete userssourcegraph.users.delete_users
  • Delete promptsourcegraph.prompts.delete_prompt
  • Set permissionssourcegraph.roles.set_permissions

A destructive action runs only with confirm: true. Under the human policy the agent cannot confirm for itself: the run stops until a named person approves, in the console or from a signed link in an email. The cap on a key is refused before the call is sent, never after.

dosourcegraph.users.delete_userconfirm_policy: human

Delete user?

intent: the user asked me to delete user

run suspended · waiting for a named person · key sourcegraph-agent cannot confirm itself
In the console, or from an emailed signed link.
a key for this connector
account {  op: "keys.create", name: "sourcegraph-agent",  allowed_actions: ["sourcegraph.*"], cap_calls: 2000,  confirm_policy: "human_for_writes",  approval_rules: [    { match: "sourcegraph.users.delete_user", approver: "[email protected]" },    { match: "sourcegraph.organizations.delete_organization", approver: "[email protected]" },    { match: "sourcegraph.roles.delete_role", approver: "[email protected]" }  ]}
Illustrative. Scoped to Sourcegraph only, capped at 2,000 upstream calls, every write confirmed, and the destructive ones approved by a named person.

Cost

What Sourcegraph costs on actionlake.

Every Sourcegraph action is one upstream call, the only thing actionlake bills. Searching, check, cost, account and any call Sourcegraph refused with 401, 403, 429 or a 5xx are free. Paid plans start at US$49 a month for 250,000 calls, with overage from US$0.30 down to US$0.18 per 1,000.

  • 1upstream call per actionall 423 Sourcegraph actions
  • 423actions pageeach page of a long list is one call
  • 171reads can be cacheda cache hit costs nothing
  • 100,000calls a month, freepaid plans from US$49 a month for 250,000

See pricing

Action index

Every Sourcegraph action.

423 actions by area: the id your agent calls, what it does, and its effect.

Batch changes42
  • sourcegraph.batch_changes.apply_batch_changeApply batch changewrite
  • sourcegraph.batch_changes.available_bulk_operationsList available bulk operationsread
  • sourcegraph.batch_changes.batch_changesList batch changesread
  • sourcegraph.batch_changes.batch_changes_user_credential_github_appsList batch changes user credential github appsread
  • sourcegraph.batch_changes.batch_changeGet batch changeread
  • sourcegraph.batch_changes.batch_changes_code_hostsList batch changes code hostsread
  • and 36 more in this area
Site40
  • sourcegraph.site.alerts_listList site alertsread
  • sourcegraph.site.background_jobsList background jobsread
  • sourcegraph.site.gitserversList gitserversread
  • sourcegraph.site.notebook_exportsList notebook exportsread
  • sourcegraph.site.client_configurationGet client configurationread
  • sourcegraph.site.configuration_getGet site configurationread
  • and 34 more in this area
Repositories31
  • sourcegraph.repositories.branches_listList branchesread
  • sourcegraph.repositories.commits_listList commitsread
  • sourcegraph.repositories.repositoriesList repositoriesread
  • sourcegraph.repositories.repositoryGet repositoryread
  • sourcegraph.repositories.add_phabricator_repoAdd phabricator repowrite
  • sourcegraph.repositories.add_repo_metadataAdd repo metadatawrite
  • and 25 more in this area
Code intelligence27
  • sourcegraph.code_intelligence.code_intelligence_configuration_policiesList code intelligence configuration policiesread
  • sourcegraph.code_intelligence.create_code_intelligence_configuration_policyCreate code intelligence configuration policywrite
  • sourcegraph.code_intelligence.indexer_keysList indexer keysread
  • sourcegraph.code_intelligence.precise_indexesList precise indexesread
  • sourcegraph.code_intelligence.bump_derivative_graph_keyBump derivative graph keywrite
  • sourcegraph.code_intelligence.code_intel_summaryGet code intel summaryread
  • and 21 more in this area
Insights27
  • sourcegraph.insights.add_insight_view_to_dashboardAdd insight view to dashboardwrite
  • sourcegraph.insights.create_insights_dashboardCreate insights dashboardwrite
  • sourcegraph.insights.create_inventory_stats_insightCreate inventory stats insightwrite
  • sourcegraph.insights.create_line_chart_search_insightCreate line chart search insightwrite
  • sourcegraph.insights.create_pie_chart_search_insightCreate pie chart search insightwrite
  • sourcegraph.insights.delete_insight_viewDelete insight viewdestructive
  • and 21 more in this area
Users24
  • sourcegraph.users.create_userCreate userwrite
  • sourcegraph.users.current_userGet current userread
  • sourcegraph.users.userGet userread
  • sourcegraph.users.usersList usersread
  • sourcegraph.users.access_tokens_listList a user's access tokensread
  • sourcegraph.users.add_external_accountAdd external accountwrite
  • and 18 more in this area
Code hosts21
  • sourcegraph.code_hosts.add_external_serviceAdd external servicewrite
  • sourcegraph.code_hosts.bitbucket_cloud_repositoriesList bitbucket cloud repositoriesread
  • sourcegraph.code_hosts.bitbucket_cloud_workspacesList bitbucket cloud workspacesread
  • sourcegraph.code_hosts.bitbucket_server_repositoriesList bitbucket server repositoriesread
  • sourcegraph.code_hosts.bitbucket_server_repository_query_previewGet bitbucket server repository query previewread
  • sourcegraph.code_hosts.cancel_external_service_syncCancel external service syncdestructive
  • and 15 more in this area
Repo permissions14
  • sourcegraph.repo_permissions.authorized_user_repositoriesList authorized user repositoriesread
  • sourcegraph.repo_permissions.bitbucket_project_permission_jobsList bitbucket project permission jobsread
  • sourcegraph.repo_permissions.permissions_sync_jobsList permissions sync jobsread
  • sourcegraph.repo_permissions.schedule_repository_permissions_syncSchedule repository permissions syncwrite
  • sourcegraph.repo_permissions.add_repository_permission_for_userAdd repository permission for userdestructive
  • sourcegraph.repo_permissions.cancel_permissions_sync_jobCancel permissions sync jobdestructive
  • and 8 more in this area
Feature flags13
  • sourcegraph.feature_flags.create_feature_flagCreate feature flagwrite
  • sourcegraph.feature_flags.feature_flagGet feature flagread
  • sourcegraph.feature_flags.feature_flagsList feature flagsread
  • sourcegraph.feature_flags.update_feature_flagUpdate feature flagwrite
  • sourcegraph.feature_flags.create_feature_flag_overrideCreate feature flag overridewrite
  • sourcegraph.feature_flags.delete_feature_flagDelete feature flagdestructive
  • and 7 more in this area
Code review12
  • sourcegraph.code_review.add_change_request_review_threadAdd change request review threadwrite
  • sourcegraph.code_review.change_requestsList change requestsread
  • sourcegraph.code_review.connect_review_semgrepConnect review semgrepwrite
  • sourcegraph.code_review.create_change_request_reportCreate change request reportwrite
  • sourcegraph.code_review.change_requestGet change requestread
  • sourcegraph.code_review.change_request_by_repositoryGet change request by repositoryread
  • and 6 more in this area
Executors11
  • sourcegraph.executors.create_executor_secretCreate executor secretwrite
  • sourcegraph.executors.docker_registry_credentialsList docker registry credentialsread
  • sourcegraph.executors.executor_secretsList executor secretsread
  • sourcegraph.executors.executorsList executorsread
  • sourcegraph.executors.are_executors_configuredGet are executors configuredread
  • sourcegraph.executors.delete_docker_registry_credentialDelete docker registry credentialdestructive
  • and 5 more in this area
Search contexts11
  • sourcegraph.search_contexts.create_search_contextCreate search contextwrite
  • sourcegraph.search_contexts.create_search_context_starCreate search context starwrite
  • sourcegraph.search_contexts.search_contextsList search contextsread
  • sourcegraph.search_contexts.search_contexts_by_idsList search contexts by idsread
  • sourcegraph.search_contexts.default_search_contextGet default search contextread
  • sourcegraph.search_contexts.delete_search_contextDelete search contextdestructive
  • and 5 more in this area
Prompts10
  • sourcegraph.prompts.create_promptCreate promptwrite
  • sourcegraph.prompts.create_prompt_tagCreate prompt tagwrite
  • sourcegraph.prompts.prompt_tagsList prompt tagsread
  • sourcegraph.prompts.promptsList promptsread
  • sourcegraph.prompts.change_prompt_visibilityChange prompt visibilitywrite
  • sourcegraph.prompts.delete_promptDelete promptdestructive
  • and 4 more in this area
API entitlements9
  • sourcegraph.api_entitlements.batch_create_grantsBatch create grants (entitlements API)write
  • sourcegraph.api_entitlements.create_entitlementCreate entitlement (entitlements API)write
  • sourcegraph.api_entitlements.list_entitlementsList entitlements (entitlements API)read
  • sourcegraph.api_entitlements.list_grantsList grants (entitlements API)read
  • sourcegraph.api_entitlements.batch_delete_grantsBatch delete grants (entitlements API)destructive
  • sourcegraph.api_entitlements.delete_entitlementDelete entitlement (entitlements API)destructive
  • and 3 more in this area
Code monitors9
  • sourcegraph.code_monitors.create_code_monitorCreate code monitorwrite
  • sourcegraph.code_monitors.monitorsList monitorsread
  • sourcegraph.code_monitors.trigger_test_email_actionTrigger test email actionwrite
  • sourcegraph.code_monitors.trigger_test_slack_webhook_actionTrigger test slack webhook actionwrite
  • sourcegraph.code_monitors.delete_code_monitorDelete code monitordestructive
  • sourcegraph.code_monitors.reset_trigger_query_timestampsReset trigger query timestampswrite
  • and 3 more in this area
Organizations9
  • sourcegraph.organizations.create_organizationCreate organizationwrite
  • sourcegraph.organizations.organizationGet organizationread
  • sourcegraph.organizations.organizationsList organizationsread
  • sourcegraph.organizations.update_organizationUpdate organizationwrite
  • sourcegraph.organizations.add_user_to_organizationAdd user to organizationwrite
  • sourcegraph.organizations.delete_organizationDelete organizationdestructive
  • and 3 more in this area
Entitlements8
  • sourcegraph.entitlements.create_entitlementCreate entitlementwrite
  • sourcegraph.entitlements.create_entitlement_grantsCreate entitlement grantswrite
  • sourcegraph.entitlements.entitlementGet entitlementread
  • sourcegraph.entitlements.entitlementsList entitlementsread
  • sourcegraph.entitlements.delete_entitlementDelete entitlementdestructive
  • sourcegraph.entitlements.delete_entitlement_grantsDelete entitlement grantsdestructive
  • and 2 more in this area
Oauth clients8
  • sourcegraph.oauth_clients.create_idp_clientCreate IdP clientwrite
  • sourcegraph.oauth_clients.idp_clientsList idp clientsread
  • sourcegraph.oauth_clients.idp_scopesList idp scopesread
  • sourcegraph.oauth_clients.update_idp_clientUpdate IdP clientwrite
  • sourcegraph.oauth_clients.create_m2m_credentialCreate M2M credentialdestructive
  • sourcegraph.oauth_clients.delete_idp_clientDelete IdP clientdestructive
  • and 2 more in this area
Search8
  • sourcegraph.search.computeList computeread
  • sourcegraph.search.indexed_search_instancesList indexed search instancesread
  • sourcegraph.search.searchSearch coderead
  • sourcegraph.search.search_query_aggregateSearch query aggregateread
  • sourcegraph.search.deep_search_quota_usageGet deep search quota usageread
  • sourcegraph.search.parse_search_queryGet parse search queryread
  • and 2 more in this area
Code ownership7
  • sourcegraph.code_ownership.add_codeowners_fileAdd codeowners filewrite
  • sourcegraph.code_ownership.codeowners_ingested_filesList codeowners ingested filesread
  • sourcegraph.code_ownership.instance_ownership_statsGet instance ownership statsread
  • sourcegraph.code_ownership.own_signal_configurationsList own signal configurationsread
  • sourcegraph.code_ownership.delete_codeowners_filesDelete codeowners filesdestructive
  • sourcegraph.code_ownership.update_codeowners_fileUpdate codeowners filewrite
  • and 1 more in this area
Github apps7
  • sourcegraph.github_apps.add_github_app_auth_providerAdd github app auth providerwrite
  • sourcegraph.github_apps.create_github_appCreate github appwrite
  • sourcegraph.github_apps.github_appsList github appsread
  • sourcegraph.github_apps.refresh_github_appRefresh github appwrite
  • sourcegraph.github_apps.delete_github_appDelete github appdestructive
  • sourcegraph.github_apps.github_appGet github appread
  • and 1 more in this area
API deepsearch6
  • sourcegraph.api_deepsearch.add_conversation_questionAdd conversation question (deepsearch API)write
  • sourcegraph.api_deepsearch.create_conversationCreate conversation (deepsearch API)write
  • sourcegraph.api_deepsearch.get_conversationGet conversation (deepsearch API)read
  • sourcegraph.api_deepsearch.list_conversation_summariesList conversation summaries (deepsearch API)read
  • sourcegraph.api_deepsearch.cancel_conversationCancel conversation (deepsearch API)destructive
  • sourcegraph.api_deepsearch.delete_conversationDelete conversation (deepsearch API)destructive
Model providers6
  • sourcegraph.model_providers.create_inference_providerCreate inference providerwrite
  • sourcegraph.model_providers.inferenceGet inferenceread
  • sourcegraph.model_providers.update_inference_providerUpdate inference providerwrite
  • sourcegraph.model_providers.validate_inference_providerValidate inference providerwrite
  • sourcegraph.model_providers.delete_inference_providerDelete inference providerdestructive
  • sourcegraph.model_providers.update_inference_routing_configurationUpdate inference routing configurationwrite
Packages6
  • sourcegraph.packages.add_package_repo_filterAdd package repo filterwrite
  • sourcegraph.packages.package_repo_filtersList package repo filtersread
  • sourcegraph.packages.package_repo_referencesList package repo referencesread
  • sourcegraph.packages.package_repo_references_matching_filterGet package repo references matching filterread
  • sourcegraph.packages.delete_package_repo_filterDelete package repo filterdestructive
  • sourcegraph.packages.update_package_repo_filterUpdate package repo filterwrite
Roles6
  • sourcegraph.roles.create_roleCreate rolewrite
  • sourcegraph.roles.delete_roleDelete roledestructive
  • sourcegraph.roles.permissionsList permissionsread
  • sourcegraph.roles.rolesList rolesread
  • sourcegraph.roles.set_permissionsSet permissionsdestructive
  • sourcegraph.roles.set_rolesSet rolesdestructive
Saved searches6
  • sourcegraph.saved_searches.create_saved_searchCreate saved searchwrite
  • sourcegraph.saved_searches.delete_saved_searchDelete saved searchdestructive
  • sourcegraph.saved_searches.saved_searchesList saved searchesread
  • sourcegraph.saved_searches.update_saved_searchUpdate saved searchwrite
  • sourcegraph.saved_searches.change_saved_search_visibilityChange saved search visibilitywrite
  • sourcegraph.saved_searches.transfer_saved_search_ownershipTransfer saved search ownershipdestructive
Settings6
  • sourcegraph.settings.editEdit settings at a key pathwrite
  • sourcegraph.settings.instance_settings_configurationGet instance settings configurationread
  • sourcegraph.settings.overwriteOverwrite settingswrite
  • sourcegraph.settings.set_instance_settingsSet instance settingswrite
  • sourcegraph.settings.settings_subjectGet settings subjectread
  • sourcegraph.settings.viewer_settingsGet viewer settingsread
Webhooks6
  • sourcegraph.webhooks.create_webhookCreate webhookwrite
  • sourcegraph.webhooks.delete_webhookDelete webhookdestructive
  • sourcegraph.webhooks.update_webhookUpdate webhookwrite
  • sourcegraph.webhooks.webhooksList webhooksread
  • sourcegraph.webhooks.webhook_log_retention_in_millisecondsGet webhook log retention in millisecondsread
  • sourcegraph.webhooks.webhook_logsList webhook logsread
API searchjobs5
  • sourcegraph.api_searchjobs.create_search_jobCreate search job (searchjobs API)write
  • sourcegraph.api_searchjobs.delete_search_jobDelete search job (searchjobs API)destructive
  • sourcegraph.api_searchjobs.get_search_jobGet search job (searchjobs API)read
  • sourcegraph.api_searchjobs.list_search_jobsList search jobs (searchjobs API)read
  • sourcegraph.api_searchjobs.cancel_search_jobCancel search job (searchjobs API)destructive
API users5
  • sourcegraph.api_users.batch_undelete_usersBatch undelete users (users API)write
  • sourcegraph.api_users.get_userGet user (users API)read
  • sourcegraph.api_users.list_usersList users (users API)read
  • sourcegraph.api_users.update_userUpdate user (users API)write
  • sourcegraph.api_users.batch_delete_usersBatch delete users (users API)destructive
Outbound webhooks5
  • sourcegraph.outbound_webhooks.create_outbound_webhookCreate outbound webhookwrite
  • sourcegraph.outbound_webhooks.outbound_webhook_event_typesList outbound webhook event typesread
  • sourcegraph.outbound_webhooks.outbound_webhooksList outbound webhooksread
  • sourcegraph.outbound_webhooks.update_outbound_webhookUpdate outbound webhookwrite
  • sourcegraph.outbound_webhooks.delete_outbound_webhookDelete outbound webhookdestructive
API explicitrepopermissions4
  • sourcegraph.api_explicitrepopermissions.create_explicit_repo_permissionCreate explicit repo permission (explicitrepopermissions API)write
  • sourcegraph.api_explicitrepopermissions.delete_explicit_repo_permissionDelete explicit repo permission (explicitrepopermissions API)destructive
  • sourcegraph.api_explicitrepopermissions.get_explicit_repo_permissionGet explicit repo permission (explicitrepopermissions API)read
  • sourcegraph.api_explicitrepopermissions.list_explicit_repo_permissionsList explicit repo permissions (explicitrepopermissions API)read
Slack4
  • sourcegraph.slack.connect_slack_workspaceConnect slack workspacewrite
  • sourcegraph.slack.disconnect_slack_workspaceDisconnect slack workspacedestructive
  • sourcegraph.slack.set_slack_allow_deep_searchSet slack allow deep searchwrite
  • sourcegraph.slack.slack_configurationsList slack configurationsread
Namespaces3
  • sourcegraph.namespaces.namespaceGet namespaceread
  • sourcegraph.namespaces.namespace_by_nameGet namespace by nameread
  • sourcegraph.namespaces.nodeGet noderead
Access requests2
  • sourcegraph.access_requests.access_requestsList access requestsread
  • sourcegraph.access_requests.set_access_request_statusSet access request statuswrite
Access tokens2
  • sourcegraph.access_tokens.create_access_tokenCreate access tokendestructive
  • sourcegraph.access_tokens.delete_access_tokenDelete access tokendestructive
Notifications2
  • sourcegraph.notifications.delete_notificationDelete notificationdestructive
  • sourcegraph.notifications.dismiss_notificationDismiss notificationwrite
API repositories1
  • sourcegraph.api_repositories.get_repositoryGet repository (repositories API)read

This index shows a sample of each area. All 423 actions, with their inputs and prices, are in the catalogue, which a free sandbox key can search.

Questions

The Sourcegraph MCP server, answered.

Is there a Sourcegraph MCP server for Claude?

Yes. actionlake is an MCP gateway: a remote MCP server that gives Claude, or another MCP client, 423 Sourcegraph actions across batch changes, site, repositories and code intelligence, through the same eight tools it uses for every other connector. actionlake is independent; it is not made or endorsed by Sourcegraph.

What do I need to connect Sourcegraph?

Sourcegraph access token (User settings > Access tokens; give it the `user:all` scope, or…. Plus your auth scheme and your host. The free call account { op: "connections.requirements", service: "sourcegraph" } lists exactly what to paste.

Can an AI agent delete or change things in Sourcegraph?

Only if its key allows it, and only with an explicit confirmation. 77 Sourcegraph actions are destructive, including delete user, delete organization and delete role. Each runs only with confirm: true. Under the human confirm policy, or an approval rule on the key, the run waits until a named person approves it.

Will an AI agent use up my Sourcegraph API limit?

actionlake paces every call to the limits in the Sourcegraph service file: 600 calls a minute per connection. Repeated reads are answered from cache (171 Sourcegraph actions can be), which never reaches Sourcegraph.

What does a Sourcegraph action cost?

One upstream call, the only unit actionlake bills. A list that pages bills one call per page (423 Sourcegraph actions page). Cache hits, searches, dry runs and calls Sourcegraph refused with 401, 403, 429 or a 5xx are free. The Free plan includes 100,000 calls a month with no card. Paid plans start at US$49 a month for 250,000 calls, with overage from US$0.30 down to US$0.18 per 1,000.

Which Sourcegraph API does it cover?

The Sourcegraph 7.x: versioned Sourcegraph API v1 (OpenAPI 3.1) + GraphQL debug API at your Sourcegraph instance's API base URL, which you enter when connecting. It is built from Sourcegraph's documentation as read on 23 October 2026. 423 actions in 38 areas, each one in the signed service file (version 1.0.0).

Does actionlake keep my Sourcegraph data, and where?

actionlake processes and stores data in Sydney, Australia; there is no US region yet. Reads may be cached for up to 5 minutes, and a write clears the reads it affects. Each run's request and response is kept, sealed, for your plan's trace window: 1 day on Free, 3 days on Starter, 7 days on Pro, 14 days on Team, 30 days on Business and 30 days on Enterprise. Your Sourcegraph credential is sealed under your tenant's key, never logged and never returned. Your traffic is not used to train models.

Which AI clients can use it?

Claude Code, tested by us end to end, and the Claude app as a custom connector, tested by us with an existing key. Other MCP clients that support remote servers over Streamable HTTP (MCP revisions 2025-06-18 and 2025-11-25) and OAuth dynamic client registration, or a bearer header, should connect the same way; we have not tested them. Or plain REST, under the same action names.

Give your agent Sourcegraph today.

Start free - 100,000 calls/month, no card. No signup. Hard caps on every key. Cached answers are free.