Connect your agents
Meko uses the Model Context Protocol (MCP) to connect each datapack to your AI coding tools, agent frameworks, and chat applications.
MCP tool usage counts toward Meko Cloud Free tier limits, including 1,000 conversation messages and 10,000 retrieval requests per month (memory and knowledge-base searches). See Meko pricing for plan details.
The following instructions apply to Meko Cloud. For information on installing and connecting Meko Local on your computer, see meko Install.
Follow these steps for any tool or framework:
- Create a datapack in the Meko web portal.
- Add the Meko MCP server to your AI agent or application.
- Use Meko through natural language prompts.
Quick start
In the Meko portal, select Connect and follow the steps.
The Installer method is recommended. It adds the Meko MCP server, plus agent skills and session hooks that make Meko automatic.
OAuth and a manual API key give your agent the Meko tools but not the skills, so it calls Meko only when you mention Meko in a prompt, such as "save this to Meko". For per-client configuration paths and installer options, see Connect to an AI agent.
Client Installer
Recommended. Adds the Meko MCP server, plus agent skills and session hooks that make Meko automatic.
In a terminal, run:
npx @yugabytedb/meko-mcp@latest --client <client> --url "https://mcp.mekodata.ai/mcp"
Replace <client> with claude-code, claude-desktop, cursor, codex, kiro, opencode, or all.
The installer opens your browser. Sign in the way you sign in to the portal, and it creates an API key for that client. Over SSH, add --no-browser and open the URL the installer prints. Restart your client if the Meko server doesn't show up. OpenCode always needs a restart.
On Claude Desktop the installer builds two .skill files that you import yourself. See Claude Desktop.
Connector (OAuth)
For Claude Desktop and other clients with a custom-connector flow. No installer and no API key.
- In your client, add a custom MCP connector pointing at
https://mcp.mekodata.ai/mcp. - Complete the OAuth handshake when the browser opens. Your Meko portal login is the identity.
Clients that complete OAuth through a local http://127.0.0.1 callback currently fail with an HTML 403 Forbidden. That covers command-line clients and some IDEs. Use the installer or an API key for those. Hosted connectors with an https callback, such as Claude Desktop's, are unaffected.
Manual MCP Install
For any MCP-compatible client, including VS Code.
-
Go to Settings > API Keys and click Generate API key. Name it for the client that will use it (for example,
laptop/cursor). The full key is shown once, so click Copy or Download .txt before closing. -
Add the Meko server to your client's MCP config. For example, in Cursor's
mcp.json:{ "mcpServers": { "meko": { "url": "https://mcp.mekodata.ai/mcp", "headers": { "Authorization": "Bearer <paste-your-api-key>", "User-Agent": "meko-mcp-installer/1.0" } } } }Keep the
Bearerprefix and theUser-Agentheader. Meko rejects requests without either. -
Restart your client.
To check the connection, ask your agent:
List my datapacks in Meko.
It calls the datapack_list tool and returns your datapacks, including the default one. If it doesn't, see Troubleshooting.
MCP server URL
Meko Cloud MCP clients such as Cursor, Claude Desktop, and Claude Code need the MCP server URL.
Every account and datapack connecting to Meko Cloud uses the same hosted endpoint URL:
https://mcp.mekodata.ai/mcp
The datapack Connect dialog also shows this URL. The URL doesn't change when you switch datapacks.
The datapack_id or datapack name in each MCP tool call selects the datapack.
Choose an authentication method
Meko Cloud accepts two ways for a client to authenticate.
| API key | OAuth | |
|---|---|---|
| What the client sends | An Authorization: Bearer header |
Nothing ā it registers itself and opens a browser |
| Requires a browser | No; works unattended and in CI | Yes, whenever the session expires |
| Works from a terminal | Yes | No ā see the note below |
| Identity | The key you generated | Your Meko portal login |
Use only one method for each client. If you configure both, the client may use OAuth instead of your API key. OAuth uses your browser identity. If that identity doesn't have a Meko account, every call returns no Meko account found for your identity. Generating a new API key won't help; remove one of the two configurations.
OAuth
To use OAuth, enter only the MCP server URL. The client opens your browser so you can sign in to the Meko portal. It then gets the MCP tool list automatically.
Clients that register a local http://127.0.0.1 callback receive an HTML 403 Forbidden error. This includes command-line clients and Kiro IDE. Use an API key for those clients. Claude Desktop's custom connector uses a supported callback and can use OAuth.
API key
Meko API keys are long-lived personal access tokens. Each key starts with mko_tkn_.
Create a key in Settings > API Keys or in the datapack Connect dialog. To learn about naming, limits, revocation, and best practices, see API keys.
Meko cannot show the full API key again after you close the create dialog. If you lose it, revoke the old key and generate a new one.
The datapack Connect dialog lists the prefixes of your active keys, such as mko_tkn_3KvL9X8zā¦. Use these prefixes to tell keys apart. When you configure a client, paste the full key that you saved, not the prefix.
Send the key as a Bearer token
To authenticate with an API key, add both headers:
Authorization: Bearer mko_tkn_your_key_here
User-Agent: meko-mcp-installer/1.0
The names matter. Meko reads only the Authorization header, and its value must start with Bearer . A header or environment variable named API_KEY, MEKO_API_KEY, or X-Api-Key doesn't work. Meko also rejects requests that don't include User-Agent.
Some clients need the mcp-remote helper to connect to a remote MCP server. In this guide, only Claude Desktop needs it. Its API key configuration is different; copy the Claude Desktop configuration.
Connect to an AI agent
Detailed instructions for your client.