Outsource MCP is a server that enables AI applications to access multiple AI model providers through a unified interface using the Model Context Protocol (MCP). It supports 20+ providers, including OpenAI, Anthropic, Google, and many others, allowing you to generate text and images with a consistent API structure.
To use Outsource MCP, you need to add its configuration to your MCP client. The setup uses uvx
to run the server directly from GitHub:
{
"mcpServers": {
"outsource-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/gwbischof/outsource-mcp.git", "outsource-mcp"],
"env": {
"OPENAI_API_KEY": "your-openai-key",
"ANTHROPIC_API_KEY": "your-anthropic-key",
"GOOGLE_API_KEY": "your-google-key"
// Add only the API keys you need
}
}
}
}
You only need to include API keys for providers you intend to use. For example, if you only plan to use OpenAI's models, you can include just the OPENAI_API_KEY
.
Once configured, you can use two main tools with your MCP client:
The outsource_text
tool generates text responses using various AI models:
# Example with OpenAI
provider: openai
model: gpt-4o-mini
prompt: Write a haiku about coding
# Example with Anthropic
provider: anthropic
model: claude-3-5-sonnet-20241022
prompt: Explain quantum computing in simple terms
The outsource_image
tool creates images (currently only supported with OpenAI's DALL-E models):
# Using DALL-E 3
provider: openai
model: dall-e-3
prompt: A serene Japanese garden with cherry blossoms
# Using DALL-E 2
provider: openai
model: dall-e-2
prompt: A futuristic cityscape at sunset
openai
) - GPT-4, GPT-3.5, DALL-E, etc.anthropic
) - Claude 3.5, Claude 3, etc.google
) - Gemini Pro, Gemini Flash, etc.groq
) - Llama 3, Mixtral, etc.deepseek
) - DeepSeek Chat & Coderxai
) - Grok modelsperplexity
) - Sonar modelscohere
), Mistral AI (mistral
), NVIDIA (nvidia
)huggingface
), Ollama (ollama
), Fireworks AI (fireworks
)openrouter
), Together AI (together
), Cerebras (cerebras
)deepinfra
), SambaNova (sambanova
)aws
or bedrock
), Azure AI (azure
), IBM WatsonX (ibm
or watsonx
)litellm
), Vercel v0 (vercel
or v0
), Meta Llama (meta
)Each provider requires its own API key environment variable:
Provider | Environment Variable | Example |
---|---|---|
OpenAI | OPENAI_API_KEY |
sk-... |
Anthropic | ANTHROPIC_API_KEY |
sk-ant-... |
GOOGLE_API_KEY |
AIza... | |
Groq | GROQ_API_KEY |
gsk_... |
Ollama | OLLAMA_HOST |
http://localhost:11434 |
If you encounter issues:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "outsource-mcp" '{"command":"uvx","args":["--from","git+https://github.com/gwbischof/outsource-mcp.git","outsource-mcp"],"env":{"OPENAI_API_KEY":"your-openai-key","ANTHROPIC_API_KEY":"your-anthropic-key","GOOGLE_API_KEY":"your-google-key","GROQ_API_KEY":"your-groq-key","DEEPSEEK_API_KEY":"your-deepseek-key","XAI_API_KEY":"your-xai-key","PERPLEXITY_API_KEY":"your-perplexity-key","COHERE_API_KEY":"your-cohere-key","FIREWORKS_API_KEY":"your-fireworks-key","HUGGINGFACE_API_KEY":"your-huggingface-key","MISTRAL_API_KEY":"your-mistral-key","NVIDIA_API_KEY":"your-nvidia-key","OLLAMA_HOST":"http://localhost:11434","OPENROUTER_API_KEY":"your-openrouter-key","TOGETHER_API_KEY":"your-together-key","CEREBRAS_API_KEY":"your-cerebras-key","DEEPINFRA_API_KEY":"your-deepinfra-key","SAMBANOVA_API_KEY":"your-sambanova-key"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"outsource-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/gwbischof/outsource-mcp.git",
"outsource-mcp"
],
"env": {
"OPENAI_API_KEY": "your-openai-key",
"ANTHROPIC_API_KEY": "your-anthropic-key",
"GOOGLE_API_KEY": "your-google-key",
"GROQ_API_KEY": "your-groq-key",
"DEEPSEEK_API_KEY": "your-deepseek-key",
"XAI_API_KEY": "your-xai-key",
"PERPLEXITY_API_KEY": "your-perplexity-key",
"COHERE_API_KEY": "your-cohere-key",
"FIREWORKS_API_KEY": "your-fireworks-key",
"HUGGINGFACE_API_KEY": "your-huggingface-key",
"MISTRAL_API_KEY": "your-mistral-key",
"NVIDIA_API_KEY": "your-nvidia-key",
"OLLAMA_HOST": "http://localhost:11434",
"OPENROUTER_API_KEY": "your-openrouter-key",
"TOGETHER_API_KEY": "your-together-key",
"CEREBRAS_API_KEY": "your-cerebras-key",
"DEEPINFRA_API_KEY": "your-deepinfra-key",
"SAMBANOVA_API_KEY": "your-sambanova-key"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"outsource-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/gwbischof/outsource-mcp.git",
"outsource-mcp"
],
"env": {
"OPENAI_API_KEY": "your-openai-key",
"ANTHROPIC_API_KEY": "your-anthropic-key",
"GOOGLE_API_KEY": "your-google-key",
"GROQ_API_KEY": "your-groq-key",
"DEEPSEEK_API_KEY": "your-deepseek-key",
"XAI_API_KEY": "your-xai-key",
"PERPLEXITY_API_KEY": "your-perplexity-key",
"COHERE_API_KEY": "your-cohere-key",
"FIREWORKS_API_KEY": "your-fireworks-key",
"HUGGINGFACE_API_KEY": "your-huggingface-key",
"MISTRAL_API_KEY": "your-mistral-key",
"NVIDIA_API_KEY": "your-nvidia-key",
"OLLAMA_HOST": "http://localhost:11434",
"OPENROUTER_API_KEY": "your-openrouter-key",
"TOGETHER_API_KEY": "your-together-key",
"CEREBRAS_API_KEY": "your-cerebras-key",
"DEEPINFRA_API_KEY": "your-deepinfra-key",
"SAMBANOVA_API_KEY": "your-sambanova-key"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect