Adfin MCP Setup Guide

# Model Context Protocol (MCP) Setup Guide
 

 ## Requirements
 - Python 3.10 or higher
 

 ## Step 1: Install `uv`
 

 ### MacOS/Linux
 ```bash
 curl -LsSf https://astral.sh/uv/install.sh | sh
 

Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
 

Step 2: Configure Claude Desktop

  1. Download and launch Claude Desktop.

  2. Navigate to Settings > Developer > Edit Config.

  3. Modify claude_desktop_config.json with the following configuration:

    {
      "mcpServers": {
      "Adfin": {
      "command": "<home_path>/.local/bin/uv",
      "args": [
      "--directory",
      "<absolute_path_to_adfin_mcp_folder>",
      "run",
      "main_adfin_mcp.py"
      ],
      "env": {
      "ADFIN_EMAIL": "<email>",
      "ADFIN_PASSWORD": "<password>"
      }
      },
      "filesystem": {
      "command": "<home_path>/.local/bin/uv",
      "args": [
      "--directory",
      "<absolute_path_to_adfin_mcp_folder>",
      "run",
      "filesystem.py"
      ]
      }
      }
     }
     
  4. Relaunch Claude Desktop.

Step 3: Launch Claude Desktop

  • The first launch may take 10-20 seconds for the Adfin tools to appear.
  • Each launch ensures the most recent Adfin API tools are available to your AI assistant.
Share this post: