Grok CLI Gets MCP Support
Grok CLI transforms from a smart terminal assistant into a connected productivity powerhouse with MCP (Model Context Protocol) support, enabling seamless integration with 1000+ development tools and APIs.
Grok CLI transforms from a smart terminal assistant into a connected productivity powerhouse with MCP (Model Context Protocol) support, enabling seamless integration with 1000+ development tools and APIs.
Last week, something unexpected happened. Grok CLI – our conversational AI command-line tool – exploded in popularity among developers. The response was overwhelming: thousands of installs, active community discussions, and feature requests pouring in.
The message was clear: developers want AI that seamlessly integrates into their existing workflows, not just isolated sandbox environments.
So we listened. And we're doubling down.
VibeKit was born from a core belief: every application will need a coding agent in the future. Whether you're building a dedicated coding environment like Replit, Cursor, or Devin, or embedding intelligent code generation into traditional applications, the demand for AI-powered coding assistance is rapidly growing.
We created VibeKit to address this inevitable shift – providing developers with secure, pluggable sandboxes that make it easy to integrate OpenAI Codex and Claude Code agents into any application. But when Grok CLI exploded last week, the community taught us something fundamental: vibe coders want complete control over their coding experience. They want to choose their models, swap providers, hack their agents, and customize every layer of the stack. The current ecosystem is fragmented and underdeveloped – so we're building the infrastructure to change that.
Today, we're taking the next step: MCP (Model Context Protocol) support for Grok CLI.
With MCP support, Grok CLI transforms from a smart terminal assistant into a connected productivity powerhouse. Here's what's now possible:
# Install Grok CLI
npm install -g @vibe-kit/grok-cli
# Set up your API key
export GROK_API_KEY="your-xai-api-key-here"
With MCP support, Grok CLI can understand and interact with your development tools through natural language commands, enabling cross-platform workflows and reducing context switching between applications.
Through MCP's extensible architecture, Grok CLI can now connect to:
MCP (Model Context Protocol) provides a standardized way for AI models to securely interact with external systems. Grok CLI leverages MCP's extensible architecture to connect with various development tools while maintaining security through isolated integrations and explicit permission boundaries.
The protocol supports multiple transport methods including stdio-based servers, HTTP servers, and Server-Sent Events (SSE), allowing for flexible integration patterns that suit different use cases and security requirements.
Early beta testers are already seeing dramatic productivity gains:
Automated Issue Tracking: "I can now create Linear issues directly from error logs in my terminal, with full context and automatic team assignment."
Cross-Platform Context: "Grok CLI understands my entire development stack. It knows which GitHub PRs relate to which Linear issues without me having to explain."
Reduced Context Switching: "Instead of jumping between 5 different tabs, I just ask Grok CLI to handle the coordination."
Ready to experience connected AI development?
# Install Grok CLI
npm install -g @vibe-kit/grok-cli
# Set up authentication
export GROK_API_KEY="your-xai-api-key-here"
# Start using Grok CLI
grok "Help me with my development workflow"
Configure MCP servers for your specific development stack:
import { GrokCLI } from '@vibe-kit/grok-cli';
const grok = new GrokCLI({
apiKey: process.env.GROK_API_KEY,
mcp: {
servers: [
{
name: 'github',
command: 'npx',
args: ['@modelcontextprotocol/server-github'],
env: {
GITHUB_PERSONAL_ACCESS_TOKEN: process.env.GITHUB_TOKEN
}
},
{
name: 'linear',
command: 'npx',
args: ['@modelcontextprotocol/server-linear'],
env: {
LINEAR_API_KEY: process.env.LINEAR_API_KEY
}
}
]
}
});
Connected AI development scenarios that are now possible:
Documentation: github.com/superagent-ai/grok-cli
MCP Protocol: modelcontextprotocol.io