The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Outsource MCP listing page.
An MCP (Model Context Protocol) server that enables AI applications to outsource tasks to various model providers through a unified interface.
Compatible with any AI tool that supports the Model Context Protocol, including Claude Desktop, Cline, and other MCP-enabled applications. Built with FastMCP for the MCP server implementation and Agno for AI agent capabilities.
Add the following configuration to your MCP client. Consult your MCP client's documentation for specific configuration details.
Note: The environment variables are optional. Only include the API keys for the providers you want to use.
Once installed and configured, you can use the tools in your MCP client:
outsource_text tool with provider "openai", model "gpt-4o-mini", and prompt "Write a haiku about coding"outsource_image tool with provider "openai", model "dall-e-3", and prompt "A futuristic city skyline at sunset"Creates an Agno agent with a specified provider and model to generate text responses.
Arguments:
provider: The provider name (e.g., "openai", "anthropic", "google", "groq", etc.)model: The model name (e.g., "gpt-4o", "claude-3-5-sonnet-20241022", "gemini-2.0-flash-exp")prompt: The text prompt to send to the modelGenerates images using AI models.
Arguments:
provider: The provider name (currently only "openai" is supported)model: The model name ("dall-e-3" or "dall-e-2")prompt: The image generation promptReturns the URL of the generated image.
Note: Image generation is currently only supported by OpenAI models (DALL-E 2 and DALL-E 3). Other providers only support text generation.
The following providers are supported. Use the provider name (in parentheses) as the provider argument:
openai) - GPT-4, GPT-3.5, DALL-E, etc. | Modelsanthropic) - Claude 3.5, Claude 3, etc. | Modelsgoogle) - Gemini Pro, Gemini Flash, etc. | Modelsgroq) - Llama 3, Mixtral, etc. | Modelsdeepseek) - DeepSeek Chat & Coder | Modelsxai) - Grok models | Modelsperplexity) - Sonar models | Modelscohere) - Command models | Modelsmistral) - Mistral Large, Medium, Small | Modelsnvidia) - Various models | Modelshuggingface) - Open source models | Modelsollama) - Local models | Modelsfireworks) - Fast inference | Modelsopenrouter) - Multi-provider access | Modelstogether) - Open source models | Modelscerebras) - Fast inference | Modelsdeepinfra) - Optimized models | Modelssambanova) - Enterprise models | Modelsaws or bedrock) - AWS-hosted models | Modelsazure) - Azure-hosted models | Modelsibm or watsonx) - IBM models | Modelslitellm) - Universal interface | Modelsvercel or v0) - Vercel AI | Modelsmeta) - Direct Meta access | ModelsEach provider requires its corresponding API key:
| Provider | Environment Variable | Example |
|---|---|---|
| OpenAI | OPENAI_API_KEY | sk-... |
| Anthropic | ANTHROPIC_API_KEY | sk-ant-... |
GOOGLE_API_KEY | AIza... | |
| Groq | GROQ_API_KEY | gsk_... |
| DeepSeek | DEEPSEEK_API_KEY | sk-... |
| xAI | XAI_API_KEY | xai-... |
| Perplexity | PERPLEXITY_API_KEY | pplx-... |
| Cohere | COHERE_API_KEY | ... |
| Fireworks | FIREWORKS_API_KEY | ... |
| HuggingFace | HUGGINGFACE_API_KEY | hf_... |
| Mistral | MISTRAL_API_KEY | ... |
| NVIDIA | NVIDIA_API_KEY | nvapi-... |
| Ollama | OLLAMA_HOST | http://localhost:11434 |
| OpenRouter | OPENROUTER_API_KEY | ... |
| Together | TOGETHER_API_KEY | ... |
| Cerebras | CEREBRAS_API_KEY | ... |
| DeepInfra | DEEPINFRA_API_KEY | ... |
| SambaNova | SAMBANOVA_API_KEY | ... |
| AWS Bedrock | AWS credentials | Via AWS CLI/SDK |
| Azure AI | Azure credentials | Via Azure CLI/SDK |
| IBM WatsonX | IBM_WATSONX_API_KEY | ... |
| Meta Llama | LLAMA_API_KEY | ... |
Note: Only configure the API keys for providers you plan to use.
The MCP Inspector allows you to test the server interactively:
The test suite includes integration tests that verify both text and image generation:
Note: Integration tests require API keys to be set in your environment.
"Error: Unknown provider"
"Error: OpenAI API error"
"Error: No image was generated"
Environment variables not working
Contributions are welcome! Please feel free to submit a Pull Request.