Table of contents

Gamma's API isn't something you can guess your way through.
Before you can write a generator, an exporter, or a sync that keeps a deck up to date, you need to see what the API actually returns, and that usually means leaving the editor for a scratch script or an API client.
To help your developers query Gamma data without leaving Cursor, we'll show you how to connect Gamma with Merge Agent Handler's Gamma MCP server.
Merge Agent Handler connects Cursor to the Gamma API through the Merge CLI.
You'd install the CLI, authenticate once, and run a single setup command from your project root.
That command writes a ## Merge CLI section to your project's .cursorrules file, which tells Cursor's agent when to call merge search-tools and merge execute-tool to reach Gamma.
Merge will manage your Gamma API key on your behalf, so it never lives in your project files or your local environment.
Related: How to use the Gamma MCP in Claude Code
Before getting started, you'll need the following:
pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Gamma MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Add the Merge CLI to your environment with pipx: pipx install merge-api
Confirm the installation succeeded: merge --version
Connect the CLI to your Merge Agent Handler account: merge login
This links the CLI to your account so Merge can make authorized requests against Gamma on your behalf.
Run the following from the root of the project where you want to use Merge tools:
This writes a ## Merge CLI section to .cursorrules so Cursor knows to use the CLI for third-party services. The command is idempotent, so it's safe to re-run if you need to reset.
Related: How to integrate a Gamma MCP with Codex
Open a Cursor chat in your project and run a query like:
Kick off a test deck generation from a short outline and show me the full response, including the job status field and the export URL once it's ready, so I can model the response type correctly before I write the poller.
The first time you invoke a Gamma tool, a Magic Link will appear to complete connector authentication.

{{this-blog-only-cta}}
In case you have more questions on setting up and using the Gamma MCP in Cursor, we've addressed several more commonly-asked questions below.
With Gamma connected, Cursor can:
You can build your own MCP server that calls the Gamma API directly. For a solo developer generating decks from their own workspace, that's a workable starting point: get an API key, write the tool schemas you need, and wire it to Cursor.
The friction shows up once more than one person needs it, or the decks contain sensitive content. Gamma's API key model means a self-hosted setup either shares one key across everyone using it or leaves each developer to manage their own, and there's no built-in way to limit which operations a given agent can reach.
Merge Agent Handler centralizes Gamma authentication and adds a control layer on top.
You can scope which Gamma operations a given agent is allowed to call, so a tool built to inspect deck structure for testing doesn't also get access to generation or export, and every call is logged with the timestamp, tool name, and inputs.
Developers writing code against Gamma have to understand its API model before the code works correctly: an async generation job with a status field to poll, exports that return a download URL in a specific shape, and themes referenced by ID rather than name.
That structure is documented, but reading about it isn't the same as seeing what a real API call returns.
With the Gamma MCP connected, Cursor can pull real Gamma responses directly in the chat panel. You can kick off a generation job while writing the poller that will watch it, request an export while writing the handler that downloads it, or resolve a theme ID while writing the call that references it.
The data your code depends on and the code itself live in the same session, which cuts the round-trip to a separate API client or scratch script.
Yes, Merge for Workforce is built to help organizations provision, secure, and govern how employees connect AI tools like Cursor to systems like Gamma.
Common patterns include:
Put together, employees can use the Gamma MCP to generate decks, check export status, validate deck structure while building internal tools, and more, while IT keeps centralized control over which workspaces and operations each identity can reach.
Use Merge Agent Handler’s 160+ connectors (including Gamma) to power reliable, secure, and powerful agents.