What is MCP?
MCP (Model Context Protocol) is an open protocol by Anthropic that lets AI assistants connect to external tools. With xPilot's MCP server, you can generate images, videos, and social media posts directly from Claude Desktop, Claude Code, or any MCP-compatible client.
Available Tools
| Tool | Description |
|---|---|
list_models | List all 49 AI models (13 free), grouped by text/image/video |
generate_image | Generate AI images with FLUX, Seedream, and more (free models available) |
generate_video | Generate AI videos — text-to-video and image-to-video (Seedance, Wan, Kling) |
generate_post | Generate engaging social media posts for X (Twitter) |
check_task | Check the status of image/video generation tasks |
Get Your API Key
Prerequisites
- Sign up or log in to xPilot at xpilot.jytech.us
- Go to Settings → API Keys and click "Create New Key"
- Copy your API key (starts with xp_). It will only be shown once.
New accounts come with $5 free credit — enough to try all MCP tools.
Connect from Claude Desktop
Add xPilot as an MCP server
Open your Claude Desktop config file and add the xPilot server:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
json{
"mcpServers": {
"xpilot": {
"url": "https://xpilot.jytech.us/api/mcp",
"headers": {
"Authorization": "Bearer xp_your_api_key_here"
}
}
}
}Replace xp_your_api_key_here with your actual API key. Restart Claude Desktop after saving.
Connect from Claude Code
Add to your Claude Code settings
Add to your Claude Code settings.json (or project .mcp.json):
json{
"mcpServers": {
"xpilot": {
"type": "url",
"url": "https://xpilot.jytech.us/api/mcp",
"headers": {
"Authorization": "Bearer xp_your_api_key_here"
}
}
}
}Usage Examples
Try these prompts in Claude
List Models
“What AI models are available on xPilot? Show me the free ones.”
Generate Image
“Generate an image of a futuristic city skyline at sunset using the free FLUX model.”
Generate Video
“Create a 5-second video of ocean waves crashing on a rocky shore.”
Generate Post
“Write a Twitter post about the latest AI trends in marketing, with hashtags.”
Server Endpoints
| Endpoint | Type | Auth |
|---|---|---|
https://xpilot.jytech.us/api/mcp | Next.js | Bearer Token |
https://xpilot-mcp.<account>.workers.dev | Cloudflare Worker | Bearer Token |
Both endpoints support the same MCP tools. The Cloudflare Worker endpoint is edge-deployed globally for faster response times.
Discovery & Standards
xPilot follows standard AI discovery protocols:
GET /api/mcp— MCP server discovery (tools, resources, transport info)/.well-known/ai-plugin.json— OpenAI plugin manifest for AI platform discovery/llms.txt— Plain-text platform description for LLM crawlers
Troubleshooting
"Invalid or missing API key"
Make sure your API key starts with xp_ and is not revoked. Check Settings → API Keys in xPilot.
Tools not showing in Claude
Restart Claude Desktop after editing the config file. Check that the JSON syntax is valid.
Video task says "Processing..."
Video generation takes 1-5 minutes. Use the check_task tool with the task ID to poll for completion.
Rate limit exceeded
The API allows 30 requests per minute per key. Wait a moment and try again.