Connect to an AI agent
Integrate with AI agents for interactive use cases, such as saving personal, team, and organizational preferences, standards, and policies.
Every MCP call from an external client counts toward your account's Free tier quotas (conversations, retrievals, and related caps). See Meko pricing for plan details.
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.
The installer stores an API key in the client. You can let installer 2.5.0 create that key, or paste one you already have.
- Browser sign-in (installer): In a terminal, run the installer with no
--api-keyand withMEKO_API_KEYunset. A command that includes--urlopens the Meko sign-in page and creates a key. A command with no--urlasks you to choose Sign in with browser or Paste an API key. Sign in with the same method you use for the portal. The key is namedMeko installer (<computer>) <time>, counts toward your 10 active keys, and expires after one year. Manage it under Settings > API Keys.--no-browserprints the URL instead of opening a browser. A run with no terminal, such as CI, does not open a browser and still needs a key.--yesin a terminal still signs in through the browser. - API key you create: 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. The Connect dialog still shows a command that includes--api-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. Browser sign-in is not this OAuth path: the installer discards the sign-in session and keeps only the API key.
Use a pasted API key for 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 OAuth and an API key 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. Claude Desktop has no session hooks, so its automatic capture still depends on the model. See Claude Desktop.
Cursor Desktop
Automated setup
In the Meko portal, select Connect and follow the steps.
OAuth
In Cursor Desktop:
-
Open Cursor > Settings > Cursor Settings > Tools & MCPs > New MCP Server.
-
Add to
mcp.jsonwithout any auth headers:{ "mcpServers": { "meko": { "url": "https://mcp.mekodata.ai/mcp" } } } -
Complete the OAuth handshake when the browser opens.
Manual setup
In Cursor Desktop:
-
Choose Cursor>Settings>Cursor Settings>Tools & MCPs>New MCP Server.
-
Modify the
mcp.jsonfile 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 theBearerprefix, and keep theUser-Agentheader — see Choose an authentication method.The result should look like the following:

-
Verify the Connection by entering the following in chat.
List my datapacks in Meko
Cursor Web
This section is under development. Check back soon.
Claude Desktop
Pick a method to connect the MCP server.
| Install Method | Use when | Builds skills files |
|---|---|---|
| 1. Automated installer | You want Claude to follow Meko guidance | Yes You must still import them |
| 2. Desktop extension | You want the MCP server without a terminal | No |
| 3. OAuth | You want OAuth, or you want to edit the config yourself | No |
| 4. Manual | You want to edit the config yourself | No |
Only the automated installer builds the Desktop skills. The skills are meko-mcp-tools-desktop and meko-select-datapack-desktop; the second skill keeps a pinned datapack across chats. They tell Claude when to call Meko tools. Without them, Claude calls Meko only when you ask.
Claude Desktop has no session hooks, so even with the skills installed, automatic capture depends on the model you are using. If Claude recalls memories but doesn't save new ones, see Troubleshooting.
Automated setup
Remove the Desktop extension in Settings > Extensions before you run the installer. Otherwise you can end up with the extension and a second MCP server entry.
The installer asks before it replaces an entry it finds in claude_desktop_config.json, but it doesn't remove the extension.
To run the automated setup:
-
In the Meko portal, select Connect and follow the steps.
Alternately, run the following command:
npx @yugabytedb/meko-mcp@latest --client claude-desktop --url "https://mcp.mekodata.ai/mcp"With
MEKO_API_KEYunset, the installer opens your browser and creates an API key. IfMEKO_API_KEYis already set, it uses that key and does not open a browser. To use a key you already saved, add--api-key <paste-your-api-key>. See Before you connect.The installer writes
mcpServers.mekoinclaude_desktop_config.json, builds two.skillfiles,meko-mcp-tools-desktop.skillandmeko-select-datapack-desktop.skill, and prints a path for each on a line that starts withBuilt Meko skill bundle:.Claude Desktop has no API the installer can use to import skills, so you must import both files.
-
Import the skills files into Claude Desktop by dragging each file onto the Claude Desktop window, or using Settings > Skills.
-
Quit and restart Claude Desktop.
-
Ask Claude:
Which Meko skills do you have available?The reply should name
meko-mcp-tools-desktopandmeko-select-datapack-desktop.
When upgrading the installer, run the installer again and import the new .skill files. Desktop keeps using the copies you already imported until you replace them.
Desktop extension
The .mcpb extension installs the MCP server only. It doesn't install the skills.
You need Node.js 20.18.1 or newer on your PATH. The extension runs npx mcp-remote.
-
Download meko-2.5.1.mcpb. This is the Desktop extension for installer 2.5.1, the same version as
npx @yugabytedb/meko-mcp@2.5.1. The extension asks you to paste an API key. It does not sign in through the browser. -
In Claude Desktop, open Settings > Extensions > Install from file and select the file. You can also drag the file onto that pane.
-
When prompted, paste
https://mcp.mekodata.ai/mcpand your API key. -
Quit and restart Claude Desktop.
-
Verify the connection:
List my datapacks in Meko
OAuth
In Claude Desktop:
- Navigate to Settings, and under Customize select Connectors.
- Search for Meko in the Connectors search box, and add it as a custom MCP connector with the URL
https://mcp.mekodata.ai/mcp. - Complete the OAuth handshake when the browser opens.
Manual setup
In Claude Desktop (whether used for Chat, Cowork, or Code):
-
Navigate to Settings, and under Desktop app select Developer, then click Edit Config.
-
Edit the
claude_desktop_config.jsonfile 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
argsandenv: TheBearer <key>header value contains a space. Environment variable values can safely contain spaces, but some clients mishandle spaces inargsentries. The configuration keeps the argument space-free asAuthorization:${AUTH_HEADER}and storesBearer <key>inenv. This is the patternmcp-remoteexpects.How the substitution works: Claude Desktop doesn't expand
${AUTH_HEADER}. It passes theargsarray as written and setsAUTH_HEADERin themcp-remoteprocess environment. Whenmcp-remoteparses theAuthorizationheader, it replaces${AUTH_HEADER}with theBearer <key>value.Why the name matters:
mcp-remotesubstitutes only environment variables that are explicitly referenced inargs. TheAUTH_HEADERname inenvmust match${AUTH_HEADER}inargs. A different or unreferenced variable name doesn't authenticate the connection. -
Quit and restart Claude Desktop.
The result should look like the following:
Handling errorsIf you see errors when restarting Claude, examine the log file that appears. Verify that you have the correct version of node.js binaries in your path, use absolute paths, and consult online MCP Server configuration troubleshooting guides.
-
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 that MCP server entry. If you imported the skill files, remove meko-mcp-tools-desktop and meko-select-datapack-desktop in Settings > Skills.
Desktop extension
In Claude Desktop, open Settings > Extensions and remove the Meko extension. If you imported the skill files, remove them in Settings > Skills.
OAuth
In Claude Desktop:
- Navigate to Settings, and under Customize select Connectors.
- Search for Meko in the Connectors search box and delete it.
Manual setup
In Claude Desktop:
- Navigate to Settings, and under Desktop app select Developer, then click Edit Config.
- Edit the
claude_desktop_config.jsonfile to delete themcpServers.mekoentry. - Restart Claude Desktop.
Claude Code
Automated setup
In the Meko portal, select Connect and follow the steps.
OAuth
-
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 -
Complete the OAuth handshake when the browser opens.
Manual setup
-
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 theBearerprefix — see Choose an authentication method. -
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. That rerun is what installs capture repair. For Claude Code, pass --statusline on a one-liner that already includes --url, or accept the status line prompt when you run the installer with no --url. Updating only the skills plugin does not add the capture status text.
Enable auto-update
Auto-update is per-marketplace and disabled by default for third-party marketplaces. To opt in:
-
Open
/plugin, switch to the Marketplaces tab, selectmeko-agent-skills, and toggle Enable auto-update. -
Or add
"autoUpdate": trueto the existingmeko-agent-skillsentry in~/.claude/settings.json(user scope) or a project's.claude/settings.json. Keep thesourcefield — anautoUpdate-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.
When you provide an API key on macOS, the installer adds MEKO_API_KEY to the launchd environment used by apps opened from Spotlight or Alfred. Quit every running Codex process and relaunch Codex after installation. A running process keeps the environment it had when it started.
OAuth
In Codex Desktop:
- Choose Codex>Settings>MCP servers>Add server>Streamable HTTP.
- Enter the URL
https://mcp.mekodata.ai/mcpand leave the Bearer token field empty. - Click Authenticate beside Meko in the list of MCP servers and complete the OAuth handshake when the browser opens.
Manual setup
In Codex Desktop:
-
Choose Codex>Settings>MCP servers>Add server>Streamable HTTP.
-
Enter a name for the Meko MCP server.
-
Enter the Meko MCP server URL (
https://mcp.mekodata.ai/mcp). -
Enter a name (such as
MEKO_MCP_TOKEN) for the Bearer token environment variable, and click Save.The result should look like the following:

-
Set the
MEKO_MCP_TOKENenvironment variable with your Meko API key in your terminal using the following command:launchctl setenv MEKO_MCP_TOKEN <paste-your-api-key> -
Verify that you set
MEKO_MCP_TOKENcorrectly with your API key.launchctl getenv MEKO_MCP_TOKEN -
Quit and restart Codex Desktop.
-
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 command above has no --url, so the installer asks for the MCP URL, then asks you to choose Sign in with browser or Paste an API key. Either way Kiro stores an API key. Kiro's own OAuth callback is rejected, so don't add an OAuth connector for Kiro. The installer 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
OpenCode CLI and TUI
The installer supports OpenCode CLI and TUI 1.18.x. Choose one installation scope:
- User scope makes Meko available in every OpenCode project.
- Project scope installs Meko only in the current project.
Use only one scope for a project.
User scope
npx @yugabytedb/meko-mcp@latest --client opencode --scope user
Project scope
Run this command from the project root:
npx @yugabytedb/meko-mcp@latest --client opencode --scope project
These commands omit --url, so the installer asks for the MCP URL, then asks you to choose Sign in with browser or Paste an API key. If MEKO_API_KEY is already set, it uses that key and skips the question. It installs the Meko skill and adds an installer-owned plugin. The plugin supplies the MCP configuration when OpenCode starts, so the installer doesn't rewrite opencode.json or opencode.jsonc. It stores the API key in a private file with mode 0600.
The first OpenCode start after install can take up to 2 minutes while OpenCode installs its plugin. The installer says why it is waiting.
Restart OpenCode after installation, then verify the connection:
List my datapacks in Meko
OpenCode automatically captures visible user text and the first visible assistant message for each completed turn. It doesn't capture tool calls, hidden reasoning, files, attachments, or streaming output. Check queued work with:
npx @yugabytedb/meko-mcp@latest --capture-status
To preview and import existing local OpenCode sessions:
npx @yugabytedb/meko-mcp@latest --migrate --dry-run
npx @yugabytedb/meko-mcp@latest --migrate
Migration imports local root sessions returned by the OpenCode CLI. OpenCode 1.18.x doesn't expose child sessions through that interface. Installer 2.5.0 doesn't support OpenCode Desktop, V2 preview APIs, or headless or remote sessions. OpenCode capture uses your account's default datapack and doesn't read the pin. --datapack applies to --migrate only.
Uninstall
Uninstall using the same scope you used during installation. For user scope, run:
npx @yugabytedb/meko-mcp@latest --client opencode --scope user --uninstall
For a project installation, run the command from the project root and replace --scope user with --scope project. Uninstall removes installer-owned configuration and credentials. It keeps queued capture data so you can recover unsent exchanges.
VS Code
-
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-remotehelper.Replace
<paste-your-api-key>with the API key you saved from Settings>API Keys. -
Verify the connection by entering the following in chat:
List my datapacks in Meko