mcp for Grok
dev.safeprompt/mcp
Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.
client:Grok
transport:stdio
runtime:npm
Install mcp in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@safeprompt.dev/mcp"
],
"env": {
"SAFEPROMPT_API_KEY": "<SAFEPROMPT_API_KEY>",
"SAFEPROMPT_PROVIDER": "<SAFEPROMPT_PROVIDER>",
"SAFEPROMPT_USER_IP": "<SAFEPROMPT_USER_IP>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs