Claude Desktop Integration

AVELIN API can be used with Claude Desktop — Anthropic's official desktop application and the reference client for the Model Context Protocol (MCP). While Claude Desktop natively connects to Anthropic's API, it can be extended with AVELIN models through MCP adapters, giving you access to frontier intelligence with deep tool integration.

Why AVELIN + Claude Desktop? The definitive MCP client connected to AVELIN's frontier models — access tools, databases, file systems, and APIs directly from the chat interface, powered by governed API access with automatic failover.

Claude Desktop is Anthropic's official native desktop application for macOS and Windows, offering a polished chat experience with a focus on productivity and deep system integration. Its defining feature is first-class support for the Model Context Protocol (MCP) — an open standard that lets AI models connect to external tools, databases, file systems, web APIs, and custom services directly from the conversation. MCP transforms the chat from a simple Q&A interface into a full-featured agent workspace where the model can read your files, query your databases, call your APIs, and interact with your development environment.

The killer feature is MCP integration as a first-class citizen. While other chat apps bolt on tool support as an afterthought, Claude Desktop was designed around it. Add an MCP server for your Postgres database, and the model can query it. Add one for your GitHub repos, and it can read PRs and issues. Add one for your file system, and it can work with your documents directly. Combined with AVELIN as a backend via MCP adapters, you get this powerful tool ecosystem with AVELIN's frontier models and governed API infrastructure.


Quick Setup

Step 1: Get your AVELIN API key

Sign up at avelin.ai and generate an API key. It will look like sk-ave...xxxx.

Step 2: Install Claude Desktop

Download from claude.ai/download for macOS or Windows.

Step 3: Configure MCP Adapter for AVELIN

Claude Desktop uses a configuration file to register MCP servers. Open the config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add an OpenAI-compatible MCP adapter pointing to AVELIN:

{
  "mcpServers": {
    "avelin-adapter": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic/mcp-adapter",
        "--provider", "openai",
        "--base-url", "https://api.avelin.ai/v1",
        "--api-key", "sk-ave...xxxx",
        "--model", "avelin-pro"
      ]
    }
  }
}

Step 4: Start Chatting

  1. Restart Claude Desktop after editing the config
  2. Open a new conversation
  3. The AVELIN adapter appears as an available MCP server
  4. Claude can now route tasks through AVELIN models when appropriate

For Tool Use: avelin-agentic-ultra

Featureavelin-agentic-ultraWhy it matters for Claude Desktop
Tool useExcellentExcels at MCP tool calls and multi-step workflows
Context window256K tokensRoom for tool results and extended conversations
Function callingNativeSeamless integration with MCP server protocol

For Analysis: avelin-coding-pro

Featureavelin-coding-proWhy it matters for Claude Desktop
Context window1M tokensProcess large files from MCP filesystem servers
Max output65K tokensGenerate comprehensive analysis and code
ReasoningDeep step-by-stepComplex multi-tool reasoning chains

Quick Reference

Use caseModel
Tool-heavy workflowsavelin-agentic-ultra
Code generation & reviewavelin-coding-pro
General conversationavelin-pro
Complex reasoningavelin-ultra
Fast tool responsesavelin-agentic-fast
Architecture & designavelin-coding-ultra

Why AVELIN for Claude Desktop?

  • MCP synergy: AVELIN's agentic models are designed for tool use, matching MCP's philosophy
  • Prompt caching: ~80% cost reduction on repeated contexts across long sessions
  • Automatic failover: MCP workflows continue even if a provider has issues
  • 1M-token context: Process large files and datasets surfaced by MCP servers
  • Governed access: Enterprise-grade reliability for production MCP workflows

Advanced Configuration

Multiple MCP Servers

Combine AVELIN with other MCP servers for powerful workflows:

{
  "mcpServers": {
    "avelin-adapter": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic/mcp-adapter",
        "--provider", "openai",
        "--base-url", "https://api.avelin.ai/v1",
        "--api-key", "sk-ave...xxxx",
        "--model", "avelin-agentic-ultra"
      ]
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/you/Documents"
      ]
    },
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://user:pass@localhost:5432/mydb"
      ]
    }
  }
}

Model Selection via MCP

Different MCP servers can use different AVELIN models:

{
  "mcpServers": {
    "avelin-coding-fast": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic/mcp-adapter",
        "--provider", "openai",
        "--base-url", "https://api.avelin.ai/v1",
        "--api-key", "sk-ave...xxxx",
        "--model", "avelin-coding-pro"
      ]
    },
    "avelin-fast-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic/mcp-adapter",
        "--provider", "openai",
        "--base-url", "https://api.avelin.ai/v1",
        "--api-key", "sk-ave...xxxx",
        "--model", "avelin-agentic-fast"
      ]
    }
  }
}

Using AVELIN as Anthropic-Compatible Endpoint

Claude Desktop natively speaks Anthropic's API protocol. You can point certain MCP adapters to AVELIN's Anthropic-compatible endpoint:

EndpointBase URL
OpenAI-compatiblehttps://api.avelin.ai/v1
Anthropic-compatiblehttps://api.avelin.ai

Troubleshooting

IssueSolution
MCP server not appearingRestart Claude Desktop after editing config
"Invalid API key"Verify key starts with sk-ave in the config JSON
Adapter fails to startEnsure Node.js is installed; run npx manually to check
Tool calls timing outSwitch to avelin-agentic-fast for lower latency
Config syntax errorValidate JSON at jsonlint.com before saving
Permission deniedOn macOS, grant Claude Desktop Full Disk Access in System Settings
Model not respondingCheck model name spelling; valid names are in the Model Catalog