grok-import-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grok-import-mcp enable NSFW for all tokens"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grok-import-mcp
MCP server for batch token management on grok2api.
Tools
Tool | Description |
| Batch add tokens to a specific pool |
| Batch delete tokens from all pools |
| Enable NSFW for specified or all tokens |
| List tokens in a pool or all pools |
Related MCP server: x.ai Grok MCP Server
Environment Variables
Variable | Description |
| grok2api server URL (e.g. |
| 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_mcpAvailable Tools
4 toolsbatch_add_tokensA
Batch add tokens to a specific pool.
Inputs: tokens (required), pool_name. Returns: result
batch_delete_tokensA
Batch delete tokens from all pools.
Inputs: tokens (required). Returns: result
enable_nsfwA
Enable NSFW for specified tokens, or all tokens if list is empty/None.
Inputs: tokens. Returns: result
list_tokensA
List tokens in a specific pool, or all pools if pool_name is empty.
Inputs: pool_name. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct verb: batch_add_tokens adds, batch_delete_tokens deletes, enable_nsfw toggles a flag, and list_tokens lists. The descriptions clarify scope (specific pool vs. all pools), so there is no overlap or ambiguity.
Three tools use a clear verb_noun pattern (list_tokens, enable_nsfw, batch_add_tokens), but the 'batch_' prefix on add/delete creates a slight inconsistency. Still, all names are snake_case and readable, with predictable structure.
Four tools is perfectly scoped for a focused token management utility. Each tool handles a distinct operation without unnecessary bloat or redundancy.
The surface is missing key lifecycle operations: delete only works across all pools (not a specific pool), there is no disable_nsfw counterpart, and no way to update token properties besides NSFW. These are significant gaps for a token management tool.
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
GPT, Claude, Gemini, DeepSeek, Grok, Qwen and GLM through one API key. Pay per token.
Run Together AI chat, embeddings and images; manage fine-tunes, batches and endpoints.
Every major chat, image and video model on one prepaid key. OpenAI, Anthropic and Gemini formats.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides tools to manage OpenAI API keys and spending through the OpenAI API. Requires an OpenAI admin API key for secure access to account management features.2MIT
- AlicenseBqualityFmaintenanceEnables chat completions using x.ai's Grok API with support for multiple Grok models (grok-beta, grok-2-latest, grok-4-latest) and configurable parameters like temperature and max tokens.14 npmMIT
- FlicenseNot gradedqualityDmaintenanceAutomates Grok web interface to provide chat, web search, and conversation management via MCP, supporting multiple accounts and local/remote deployment.-
- AlicenseNot gradedqualityCmaintenanceEnables image generation and editing via the Grok Imagine Image 2.0 API, supporting text-to-image, image-to-image editing, multi-reference generation, local uploads, and asynchronous job polling.7MIT