The only platform you need to get paid - all payments in one place, invoicing and accounting reconciliations with Adfin.
The Model Context Protocol (MCP) is revolutionizing the way Large Language Models (LLMs) interact with the world. It provides a standardized bridge, enabling seamless integration between LLM applications and external data sources and tools. This guide provides a practical walkthrough of setting up and utilizing MCP to enhance your LLM workflows.
uv
uv
is a fast and efficient Python package installer and resolver. It's used here to manage dependencies for the MCP server.
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
This section details how to configure Claude Desktop to leverage MCP, allowing it to interact with external tools.
Download Claude Desktop: Obtain the application from the official Claude.ai download page.
Access Developer Configuration: Launch Claude and navigate to Settings > Developer > Edit Config
. This will open the claude_desktop_config.json
file.
Modify claude_desktop_config.json
: This file defines the MCP servers that Claude Desktop will connect to. The following example demonstrates configuring two servers: "Adfin" and "filesystem".
{ "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" ] } } }
mcpServers
: A dictionary containing the configuration for each MCP server.Adfin
and filesystem
: Example names for your MCP servers. Choose descriptive names relevant to the tools they expose.command
: The path to the uv
executable. This tells Claude Desktop how to launch the MCP server.args
: A list of arguments passed to the uv
command.
--directory
: Specifies the working directory for the MCP server. This should be the directory containing your MCP server's code.run main_adfin_mcp.py
(or run filesystem.py
): Instructs uv
to execute the specified Python script, which is the entry point for your MCP server.env
: A dictionary of environment variables to pass to the MCP server. This is useful for providing sensitive information like API keys or credentials. Important: Avoid hardcoding sensitive information directly in the configuration file. Consider using environment variables or a secure configuration management system.<home_path>
: Your home directory (e.g., /Users/yourusername
on macOS/Linux, C:\Users\YourUsername
on Windows).<absolute_path_to_adfin_mcp_folder>
: The full path to the directory containing your MCP server's code (e.g., /Users/yourusername/Documents/adfin_mcp
).<email>
: Your Adfin email address.<password>
: Your Adfin password.Relaunch Claude Desktop: Restart the application for the changes to take effect.
Initial Setup Time: The first time you launch Claude Desktop with these settings, it may take 10-20 seconds for the Adfin tools to appear. This is due to the installation of required packages and the download of the Adfin API documentation.
Automatic Updates: Each time you launch Claude Desktop, the most recent Adfin API tools are made available to your AI assistant, ensuring you're always working with the latest functionality.
Now that Claude Desktop is configured to use MCP, you can start interacting with your AI assistant and leveraging the external tools.
Examples:
Request a credit control status:
Give me a credit control status check.
Create a new invoice:
Create a new invoice for 60 GBP for Abc Def that is due in a week. His email is [email protected].
Upload multiple invoices from a folder:
Upload all pdf invoices from the invoices folder from my Desktop.
These examples demonstrate how you can use natural language to instruct your AI assistant to perform tasks using the external tools exposed through MCP. The assistant will then communicate with the MCP server, which in turn interacts with the underlying tools and data sources.
By following this guide, you can unlock the power of MCP and integrate external tools with your LLM applications, creating more powerful and versatile AI solutions.
๐ โ๏ธ Octagon AI Agents to integrate private and public market data
๐ โ๏ธ An MCP server for checking and revoking ERC-20 token allowances across multiple blockchains.
๐ โ๏ธ An MCP server providing tools for AI agents to mint ERC-20 tokens across multiple blockchains.
๐ โ๏ธ An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.