---
url: https://honeycombmaps.com/docs/ai-tools.md
description: >-
  Operate Honeycomb Maps from AI agents through its MCP endpoint and generate
  map definitions with HML.
---

# Using Honeycomb Maps with AI agents

Honeycomb Maps can be operated by AI tools through its MCP server and use of the structured HML language.

**AI use is strictly optional**. The core application does not rely on any AI-powered features. Complete functionality is available through the user interface without using AI tools.

## Accessing Honeycomb Maps via MCP

> **Warning**
>
> This feature is currently only available via the Databricks app. We are working to bring it to other platforms soon.

The Honeycomb Maps Databricks App exposes a [Model Context Protocol endpoint](https://docs.databricks.com/gcp/en/agents/mcp-tools/custom-mcp) at `[APP_BASE_URL]/mcp`.

This endpoint can be used to give AI agents access to Honeycomb Maps to create and edit maps.

![Genie Code using Honeycomb Maps](https://honeycombmaps.com/docs/images/databricks/genie_code_honeycomb.png){width=320}

When accessing Honeycomb Maps via MCP, the end user's identity is preserved. This means that if User A uses Genie to create a map in Honeycomb, the map will be owned by User A.

Honeycomb's MCP connector is designed to be complementary to the user interface. All functionality exposed by the MCP connector can also be accessed through the UI. Honeycomb Maps uses [Honeycomb Map Language](https://honeycombmaps.com/docs/reference/honeycomb-map-language.md) to define interactive maps through a declarative specification.

### Connecting AI Agents to Honeycomb Maps (Claude, ChatGPT, Copilot)

You can connect other AI tools to Honeycomb Maps in Databricks. To do so, use `{APP_BASE_URL}/mcp` as the MCP Server URL. You will be redirected to a consent screen managed by Databricks.

For example, you can use Anthropic's Claude as part of a geospatial analyst workflow, and use Honeycomb Maps to visualize the outputs.

Depending on the tool you use, you may need to configure a custom OAuth application in Databricks. You can find more information here: https://docs.databricks.com/aws/en/partner-connect/ai-agents#default-oauth-apps.

### Connecting to Databricks Genie Code

To connect Databricks Genie Code to Honeycomb Maps, use the instructions here: https://docs.databricks.com/aws/en/genie-code/mcp.

If the Honeycomb Maps app is installed in your Databricks workspace, it will appear as a 'Custom App' in the Genie Code MCP configuration page.

## Using AI tools to generate maps with HML

Honeycomb Maps uses a specification named [**Honeycomb Map Language** (HML)](https://honeycombmaps.com/docs/reference/honeycomb-map-language.md) to define the appearance and functionality of a map.

AI tools are highly capable at generating HML because it has tightly-defined rules and can easily be validated against the [official published schema](https://honeycombmaps.com/docs/schema/hml_schema_v1.0.6.json).

This design allows AI tools to generate bespoke maps that are tailored to specific business problems, with map rendering logic and potential bugs abstracted away.

Maps generated with AI tools using HML function exactly like maps created through the traditional Honeycomb Maps UI.

### Best practices

Give your AI tool the full schema file, as well as the HML config that you are working on. Tell it to ensure that the config validates against the schema.

A skill will be released soon which encapsulates all of this documentation.

### Sample prompt

```
I am working on an interactive map with Honeycomb Maps. Honeycomb Maps uses a declarative JSON-based syntax known as HML for describing a data-driven interactive map. The schema for HML is here: https://honeycombmaps.com/docs/schema/hml_schema_v1.0.6.json. Ensure that any maps you create validate against this schema, using any tools that you have.

Change the color of the point layer to blue, and add a component that shows the number of points. Also add a dropdown filter on the type column.
```
