grok-import-mcp
MCP server for batch token management on grok2api.
Tools
| Tool | Description | |------|-------------| | batch_add_tokens | Batch add tokens to a specific pool | | batch_delete_tokens | Batch delete tokens from all pools | | enable_nsfw | Enable NSFW for specified or all tokens | | list_tokens | List tokens in a pool or all pools |
Environment Variables
| Variable | Description | |----------|-------------| | GROK_API_URL | grok2api server URL (e.g. http://167.114.174.225:8000) | | GROK_API_KEY | API key for admin authentication (optional) |
Claude Code Configuration
{
"mcpServers": {
"grok-tokens": {
"command": "uvx",
"args": ["--from", "git+https://github.com/hexonal/grok-import-mcp.git", "grok-import-mcp"],
"env": {
"GROK_API_URL": "http://167.114.174.225:8000",
"GROK_API_KEY": ""
}
}
}
}
Local Development
pip install -e .
GROK_API_URL=http://localhost:8000 python -m grok_mcp





