Overview
Grok MCP Plugin is a Model Context Protocol (MCP) plugin that allows seamless integration of Grok AI's capabilities directly into Cline, enabling users to leverage advanced AI functionalities.
To use the Grok MCP Plugin, clone the repository, install the dependencies, build the project, and configure the MCP server settings in your Cline environment with your Grok API key.
- Chat Completion: Generate text responses using Grok's language models. - Image Understanding: Analyze images with Grok's vision capabilities. - Function Calling: Call functions based on user input using Grok AI.
- Generating conversational responses in applications.
- Analyzing and interpreting images for various applications.
- Automating function calls based on user queries in software.
Add to your AI client
Use these steps to connect Grok MCP Plugin in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"grok-mcp-bob-lance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grok-mcp-bob-lance"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"grok-mcp-bob-lance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grok-mcp-bob-lance"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"grok-mcp-bob-lance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grok-mcp-bob-lance"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"grok-mcp-bob-lance": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grok-mcp-bob-lance"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"grok-mcp-bob-lance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grok-mcp-bob-lance"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"grok-mcp-bob-lance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-grok-mcp-bob-lance"
]
}
}
}FAQ
What are the prerequisites for using Grok MCP Plugin?
You need Node.js (v16 or higher) and a Grok AI API key.
Is there a cost associated with using Grok MCP Plugin?
The plugin is free to use, but you may incur costs based on your usage of the Grok AI API.
How do I report issues or contribute to the project?
You can report issues or contribute by visiting the GitHub repository at https://github.com/Bob-lance/grok-mcp.