Back to Home
RazonIn4K icon

grok-mcp-server

Verified Safe

by RazonIn4K

Overview

Provides AI assistants with access to Grok 4's capabilities including chat completions, live search, and model management via the Model Context Protocol.

Installation

Run Command
npm start

Environment Variables

  • XAI_API_KEY
  • GROK_MODEL
  • GROK_BASE_URL
  • GROK_TEMPERATURE
  • GROK_MAX_TOKENS
  • LOG_LEVEL
  • NODE_ENV
  • MCP_SERVER_NAME
  • MCP_SERVER_VERSION

Security Notes

The server demonstrates strong security practices including explicit use of environment variables for API keys, robust input validation via Zod, and a basic sanitization function to mitigate XSS/prototype pollution. Communication occurs over standard I/O (stdio) as per the MCP specification, avoiding direct network exposure for tool calls. Resilience features like rate limiting and circuit breakers are implemented. The shared secret authentication mechanism is present but currently commented out in the provided code.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-11-24

Tags

Grok 4MCP ServerAILive SearchChatbot