Connect to an AI agent

Integrate Meko with Cursor, Claude Desktop, Claude Code, Codex, Kiro, and more

Integrate with AI agents for interactive use cases, such as saving personal, team, and organizational preferences, standards, and policies.

Before you connect

Every client uses the MCP server URL https://mcp.mekodata.ai/mcp. The Datapacks > Connect dialog also shows this URL.

The automated installer requires Node.js 20.18.1 or newer.

Choose one authentication method for each client:

  • API key: In the portal, open Settings > API Keys > Generate API key. Name the key, then copy or download it before you close the dialog. The key starts with mko_tkn_, and Meko shows it only once. In the instructions below, replace <paste-your-api-key> with this key.
  • OAuth: Add the MCP server URL without an API key or authentication headers. The client opens your browser so you can sign in to the Meko portal. OAuth works only when the client registers a callback that Meko accepts. Use an API key for command-line clients and Kiro.

Use an API key for command-line clients, CI, and scripts. Command-line OAuth uses a local callback that Meko currently rejects, and unattended clients can't open a browser when an OAuth session expires.

Don't configure both methods for the same client. The client may choose OAuth and ignore your API key.

For the full workflow, see MCP server URL and Choose an authentication method.

OAuth and Manual setup

When you connect with OAuth or using the Manual setup, your agent interacts with Meko on demand only: you need to mention "Meko" in your prompt (for example, "save this to Meko," "search my Meko knowledge base") for the agent to call the tools. The agent won't proactively save conversations or capture memories unless you ask.

To get automatic behavior, use the Automated setup instead, or write your own skills to teach your agent when to call Meko tools.

Cursor Desktop

Automated setup

In the Meko portal, select Connect and follow the steps.

OAuth

In Cursor Desktop:

  1. Open Cursor > Settings > Cursor Settings > Tools & MCPs > New MCP Server.

  2. Add to mcp.json without any auth headers:

    {
      "mcpServers": {
        "meko": {
          "url": "https://mcp.mekodata.ai/mcp"
        }
      }
    }
    
  3. Complete the OAuth handshake when the browser opens.

Manual setup

In Cursor Desktop:

  1. Choose Cursor>Settings>Cursor Settings>Tools & MCPs>New MCP Server.

  2. Modify the mcp.json file that Cursor opens to add the following MCP server configuration.

    {
      "mcpServers": {
        "meko": {
          "url": "https://mcp.mekodata.ai/mcp",
          "headers": {
            "Authorization": "Bearer <paste-your-api-key>",
            "User-Agent": "meko-mcp-installer/1.0"
          }
        }
      }
    }
    

    Replace <paste-your-api-key> with the API key you saved from Settings>API Keys. Keep the Bearer prefix, and keep the User-Agent header — see Choose an authentication method.

    The result should look like the following:

    Cursor Desktop

  3. Verify the Connection by entering the following in chat.

    List my datapacks in Meko
    

Cursor Web

Claude Desktop

Automated setup

In the Meko portal, select Connect and follow the steps.

This adds a mcpServers.meko entry in the claude_desktop_config.json configuration file of your Claude Desktop (see also Manual setup).

OAuth

In Claude Desktop:

  1. Navigate to Settings, and under Customize select Connectors.
  2. Search for Meko in the Connectors search box, and add it as a custom MCP connector with the URL https://mcp.mekodata.ai/mcp.
  3. Complete the OAuth handshake when the browser opens.
Manual setup

In Claude Desktop (whether used for Chat, Cowork, or Code):

  1. Navigate to Settings, and under Desktop app select Developer, then click Edit Config.

  2. Edit the claude_desktop_config.json file to add the following MCP Server entry. Replace <paste-your-api-key> with the token you saved.

    {
      "mcpServers": {
        "meko": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote@0.1.38",
            "https://mcp.mekodata.ai/mcp",
            "--transport",
            "http-only",
            "--header",
            "Authorization:${AUTH_HEADER}",
            "--header",
            "User-Agent:meko-mcp-installer/1.0"
          ],
          "env": {
            "AUTH_HEADER": "Bearer <paste-your-api-key>"
          }
        }
      }
    }
    

    Why split the key between args and env: The Bearer <key> header value contains a space. Environment variable values can safely contain spaces, but some clients mishandle spaces in args entries. The configuration keeps the argument space-free as Authorization:${AUTH_HEADER} and stores Bearer <key> in env. This is the pattern mcp-remote expects.

    How the substitution works: Claude Desktop doesn't expand ${AUTH_HEADER}. It passes the args array as written and sets AUTH_HEADER in the mcp-remote process environment. When mcp-remote parses the Authorization header, it replaces ${AUTH_HEADER} with the Bearer <key> value.

    Why the name matters: mcp-remote substitutes only environment variables that are explicitly referenced in args. The AUTH_HEADER name in env must match ${AUTH_HEADER} in args. A different or unreferenced variable name doesn't authenticate the connection.

  3. Quit and restart Claude Desktop.

    The result should look like the following:

    Claude Desktop

  4. Verify the connection by entering the following in chat:

    List my datapacks in Meko
    

Uninstall

How you remove Meko from Claude Desktop depends on how you installed it, because each installation method creates a different artifact.

Automated setup

Run the following:

npx @yugabytedb/meko-mcp@latest --client claude-desktop --uninstall

If you installed under a non-default server name, pass --server-name <name>. The uninstall removes only the MCP server entry; if you also imported a Meko skill bundle, remove it manually via Settings > Extensions.

OAuth

In Claude Desktop:

  1. Navigate to Settings, and under Customize select Connectors.
  2. Search for Meko in the Connectors search box and delete it.
Manual setup

In Claude Desktop:

  1. Navigate to Settings, and under Desktop app select Developer, then click Edit Config.
  2. Edit the claude_desktop_config.json file to delete the mcpServers.meko entry.
  3. Restart Claude Desktop.

Claude Code

Automated setup

In the Meko portal, select Connect and follow the steps.

OAuth
  1. Run the setup command in your shell to add the Meko MCP server:

    claude mcp add --scope user --transport http meko https://mcp.mekodata.ai/mcp
    
  2. Complete the OAuth handshake when the browser opens.

Manual setup
  1. Run the setup command in your shell to add the Meko MCP server to Claude Code:

    claude mcp add --scope user --transport http meko https://mcp.mekodata.ai/mcp \
      --header "Authorization: Bearer <paste-your-api-key>" \
      --header "User-Agent: meko-mcp-installer/1.0"
    

    Replace <paste-your-api-key> with the API key you saved from Settings>API Keys. Keep the Bearer prefix — see Choose an authentication method.

  2. Verify the connection by entering the following at the command-line console:

    List my datapacks in Meko
    

Updating the skills plugin

Skill content (the behavioral guides that teach the agent how to use Meko's MCP tools) ships in the meko-agent-skills plugin and versions independently of the MCP server. The marketplace source is https://github.com/yugabyte/meko-skills.git.

Inside an active Claude Code session
/plugin marketplace update meko-agent-skills
/plugin update meko-agent-skills@meko-agent-skills
/reload-plugins

If /reload-plugins warns that it would re-read the conversation, rerun it as /reload-plugins --force. Then run /doctor to confirm there are no plugin load errors.

From the shell
claude plugin marketplace update meko-agent-skills
claude plugin update meko-agent-skills@meko-agent-skills

The qualified plugin@marketplace form is required. Re-running the installer (npx @yugabytedb/meko-mcp@latest) updates an existing install automatically.

Enable auto-update

Auto-update is per-marketplace and disabled by default for third-party marketplaces. To opt in:

  1. Open /plugin, switch to the Marketplaces tab, select meko-agent-skills, and toggle Enable auto-update.

  2. Or add "autoUpdate": true to the existing meko-agent-skills entry in ~/.claude/settings.json (user scope) or a project's .claude/settings.json. Keep the source field — an autoUpdate-only replacement drops the marketplace source:

    {
      "extraKnownMarketplaces": {
        "meko-agent-skills": {
          "source": {
            "source": "git",
            "url": "https://github.com/yugabyte/meko-skills.git"
          },
          "autoUpdate": true
        }
      }
    }
    

Once enabled, Claude Code refreshes the marketplace and updates installed plugins in the background after startup. The running session keeps the versions it loaded at launch; you'll be prompted to /reload-plugins, or the new versions load on the next launch.

Open AI Codex Desktop

Automated setup

In the Meko portal, select Connect and follow the steps.

OAuth

In Codex Desktop:

  1. Choose Codex>Settings>MCP servers>Add server>Streamable HTTP.
  2. Enter the URL https://mcp.mekodata.ai/mcp and leave the Bearer token field empty.
  3. Click Authenticate beside Meko in the list of MCP servers and complete the OAuth handshake when the browser opens.
Manual setup

In Codex Desktop:

  1. Choose Codex>Settings>MCP servers>Add server>Streamable HTTP.

  2. Enter a name for the Meko MCP server.

  3. Enter the Meko MCP server URL (https://mcp.mekodata.ai/mcp).

  4. Enter a name (such as MEKO_MCP_TOKEN) for the Bearer token environment variable, and click Save.

    The result should look like the following:

    Codex Desktop

  5. Set the MEKO_MCP_TOKEN environment variable with your Meko API key in your terminal using the following command:

    launchctl setenv MEKO_MCP_TOKEN <paste-your-api-key>
    
  6. Verify that you set MEKO_MCP_TOKEN correctly with your API key.

    launchctl getenv MEKO_MCP_TOKEN
    
  7. Quit and restart Codex Desktop.

  8. Verify the connection by entering the following in chat:

    List my datapacks in Meko
    

Kiro IDE and CLI

Kiro IDE and kiro-cli share their MCP configuration, skills, and hooks. One install configures both:

npx @yugabytedb/meko-mcp@latest --client kiro

The kiro-cli and kiro-ide aliases run the same install. If you set $KIRO_HOME, the installer uses that directory instead of ~/.kiro.

The installer uses API-key authentication because Kiro registers a local OAuth callback that Meko rejects. It also installs the Meko skill, steering, and both Kiro hook formats for durable capture.

Manual setup

If you only need an on-demand MCP connection, add this entry to ~/.kiro/settings/mcp.json:

{
  "mcpServers": {
    "meko": {
      "url": "https://mcp.mekodata.ai/mcp",
      "headers": {
        "Authorization": "Bearer <paste-your-api-key>",
        "User-Agent": "meko-mcp-installer/1.0"
      }
    }
  }
}

Replace <paste-your-api-key> with the key you saved from Settings > API Keys, then protect the file because it contains the key:

chmod 600 ~/.kiro/settings/mcp.json

Manual setup doesn't install the Meko skill, steering, or capture hooks. Use the automated installer when you want Meko to capture conversations and apply its behavioral guidance.

Kiro hooks expose user prompts and final assistant responses. They don't expose tool calls or hidden reasoning, so those details aren't included in automatic capture.

Uninstall

npx @yugabytedb/meko-mcp@latest --client kiro --uninstall

VS Code

  1. Run the following command:

    echo "### Installing the latest Node.js ###"
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
    source ~/.$(basename $SHELL)rc
    nvm install --lts
    echo "### Registering the Meko MCP server ###"
    npx mcp-add@latest \
      --name meko \
      --type http \
      --url 'https://mcp.mekodata.ai/mcp' \
      --headers 'Authorization=Bearer <paste-your-api-key>,User-Agent=meko-mcp-installer/1.0' \
      --scope global \
      --clients 'vscode'
    

    VS Code can connect to a remote MCP server on its own, so this registers the URL and its headers directly. Unlike Claude Desktop, it needs no local mcp-remote helper.

    Replace <paste-your-api-key> with the API key you saved from Settings>API Keys.

  2. Verify the connection by entering the following in chat:

    List my datapacks in Meko