How to Use the AI21 Labs MCP in Cursor
Generate code comments, fix documentation, and get API-ready text from AI21 Labs directly inside your Cursor editor.
Works with every AI agent you already use
…and any MCP-compatible client
Connect AI21 Labs MCP to Cursor
Create your Vinkius account to connect AI21 Labs to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Draft text for your application
The `ai21_chat_completion` tool lets you generate text with Jamba models right in your editor. Ask Cursor's agent to write user-facing error messages, placeholder UI copy, or even draft an email, and it will insert the text directly into a string variable in your code. This isn't just about filling in blanks. Because the agent has the context of your code, you can ask it to generate text that fits the specific feature you're working on. It's much faster than switching over to a browser and copy-pasting.
Process text right in the editor
Use `ai21_paraphrase_text` and `ai21_summarize_text` to deal with text inside your project. You can highlight a long comment block and ask the agent to summarize it, or select a confusing sentence in your README and have AI21 suggest clearer alternatives. This MCP Server also gives you tools for managing files. You can use `ai21_list_files` and `ai21_get_file` to inspect text files you've previously uploaded to AI21, all without leaving your IDE. It keeps your focus where it needs to be.
Connect AI21 Labs to your agent
With this MCP server, Cursor's agent can call the AI21 API on your behalf. This means you can run `ai21_grammar_correction` on documentation you're writing in a Markdown file or use `ai21_text_improvements` on UI copy before you commit it. Setting it up is simple. Just add the MCP server to your project's `.cursor/mcp.json` file. Now your agent has a new set of skills for handling any text-based task that comes up while you're coding.
Set up AI21 Labs MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the AI21 Labs MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent AI21 Labs transactions." If the MCP tools are loaded correctly, Cursor will call the AI21 Labs tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"ai21-labs-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by AI21 Labs. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about AI21 Labs MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the AI21 Labs MCP today
We host it, we monitor it, we maintain it. You just paste one token.