Connect the Elasticsearch MCP server to your Workspace

Connect the Elasticsearch MCP server to ClickUp so Brain and Super Agents can search your data and use Elastic Agent Builder tools. You register an MCP client in Elastic Cloud Serverless, then authorize ClickUp with OAuth 2.1. Setup takes about 10 minutes.

What you need

  • You need an Elastic Cloud Serverless project with Agent Builder.
  • You need Read access to the Elastic Agent Builder Kibana feature to register an MCP client.
  • Your Elastic account needs access to the data and tools you want to use.
  • Only ClickUp Workspace owners and admins can set up Workspace connections.
  • Members can create personal connections if their admin enables the Connect Personal MCP Server permission.
  • Before returning to ClickUp, collect your MCP server URL and client ID. If you create a confidential client, also collect its client secret.

Step 1: Register ClickUp as an MCP client

You register the client in Kibana, your Serverless project's built-in web interface. You do not need to install it. Each client belongs to one Serverless project and one Kibana space. Choose the space whose tools and data you want ClickUp to access.

To register the client in Kibana:

  1. Open your Elastic Cloud Serverless project.
  2. Switch to the Kibana space you want to connect.
  3. In the navigation menu, select Agents.
  4. In the secondary navigation, select Tools.
  5. In the Tools workspace, click Manage all tools.
  6. In the Tools library workspace, click Manage MCP.
  7. In the menu, select Manage MCP clients (OAuth).
  8. On the MCP clients page, click Add MCP client.
  9. In the client form, enter ClickUp under Name.
  10. For the redirect URI type, select Remote.
  11. In the redirect URI field, paste the following URL:
https://search.clickup-prod.com/connect/elasticsearchmcp

To finish creating the client:

  1. In the client form, click Create client.
    • Optional: To generate a client secret, first select Generate confidential MCP client (optional).
  2. In the server details menu, copy the client ID.
  3. If you generated a secret, copy it to a secure location before closing the menu.

Elastic displays a confidential client's secret only once. Copy it before closing the server details menu.

If authorization returns invalid_client, check that ClickUp has the correct client ID and secret. Also check that the client's remote redirect URI matches the URL above exactly.

Step 2: Copy your MCP server URL

To get the endpoint for your client:

  1. In the client's server details menu, copy the MCP server URL.
  2. Keep the URL with your client ID for the ClickUp setup.

Use the URL exactly as Elastic shows it. A custom-space URL includes /s/ followed by the space ID. Do not add /s/default to a default-space URL or substitute another space's endpoint.

The URL ends with /api/agent_builder/mcp and uses your project's kb hostname.

If ClickUp displays That doesn't look like an Elastic Cloud Serverless MCP server URL. Copy it exactly as Kibana shows it., copy the URL again from the client's details. Do not use your Elastic Cloud Console address or a local MCP server address.

Connect Elasticsearch MCP

Use the Elasticsearch template in the App Center. The template supports the Elastic OAuth path.

To enter your connection details:

  1. In the upper-left corner, click your Workspace avatar.
  2. Under Workspace, click Apps.
  3. Select the Elasticsearch MCP template.
  4. Select a connection type:
    • Personal: A connection only for you.
    • Workspace: A connection for your whole Workspace.
  5. On the template page, click Connect.
  6. In the guided setup, review Requirements.
  7. Under Register ClickUp as an MCP client, check the redirect URI against the one you registered in Elastic.
  8. Under Paste your MCP server URL, paste the URL from your client's details.
  9. Under Client ID, paste your client ID.
  10. If you generated a secret, paste it under Client Secret (optional). Otherwise, leave the field empty.
  11. Continue through the guided setup to Sign in and authorize.

Step 3: Sign in and authorize

After entering the connection details in ClickUp, you authorize access in Elastic Cloud.

To authorize the connection:

  1. Sign in to Elastic Cloud when prompted.
  2. On the consent page, click Authorize.

ClickUp validates the connection and loads its tools. ClickUp uses the permissions of the Elastic user who authorizes the connection. Use an account with only the access the connection needs.

If ClickUp displays Connected, but Elastic returned no tools. Check that your role has Agent Builder access in this project and space., ask your Elastic administrator to check your role's Agent Builder access. Confirm that the client and MCP server URL belong to the same project and space, then reconnect.

If ClickUp reports a forbidden-access error, check your Agent Builder access in the project and Kibana space. Your Elastic administrator can review your permissions.

Personal and Workspace connections

A personal connection makes its tools available only to you in ClickUp. A Workspace connection makes its tools available to Workspace members.

Elastic scopes an OAuth authorization to the user who approves it. Sharing an Elastic client registration does not share one person's authorization. Each separate Elastic authorization uses that person's permissions.

What you can do with Elasticsearch MCP

Your available tools depend on the Elastic project, space, and authorizing user's permissions. Examples tested with the template include:

Tool Capability
platform_core_search Searches data in accessible indices.
platform_core_execute_esql Runs an ES|QL query.
platform_core_list_indices Lists accessible indices.
platform_core_get_index_mapping Retrieves an index's mapping.
platform_core_get_document_by_id Retrieves a document by its ID.
platform_core_execute_workflow Runs an Elastic workflow within the authorizing user's permissions.

Tools are not limited to reading data. Workflow tools can change indices and documents when the authorizing user's permissions allow it.

Limitations

Keep these limits in mind:

  • The Elasticsearch template supports OAuth 2.1 with Elastic Cloud Serverless only. It does not support API-key authentication.
  • Elastic Cloud Hosted and self-managed deployments cannot use this template's guided setup.
  • Each OAuth client works only with the MCP server URL shown in its details. Create another client to connect a different space.
  • Elastic does not support dynamic client registration. You must register a client before connecting ClickUp.
  • After 30 days without use, an Elastic OAuth connection expires and requires authorization again.
  • Available tools and results depend on the authorizing user's permissions. Not every Agent Builder tool is exposed through MCP.

Disconnect Elasticsearch MCP

To disconnect in ClickUp:

  1. In the upper-left corner, click your Workspace avatar.
  2. Under Workspace, click Apps.
  3. In the App Center, click Connected.
  4. Open Elasticsearch MCP and disconnect it.

To cut off access on the Elastic side, revoke an individual application connection or the entire OAuth client.

Revoking an individual connection leaves the client registered. Revoking the client affects everyone who uses that client.

To revoke one connection in Kibana:

  1. In Kibana, open Admin and settings.
  2. Select Application connections.
  3. Find the connection you want to revoke.
  4. In the connection's row, click Revoke.
  5. In the confirmation menu, review the details.
  6. Click Revoke.

You need the manage_security cluster privilege to revoke connections from this Kibana page. Users can also revoke their own connections from the Elastic Cloud Console.