Connects Claude with Dify Workflow to expose workflow capabilities as tools, enabling structured automation through dynamic parameter retrieval and multi-workflow support.
Log in to your Dify account
- Go to your Dify instance in your web browser (e.g., https://api.dify.ai/ or your team's custom Dify deployment).
Access the API Key Management
- In the Dify dashboard, look for your user/profile menu (often found in the top right corner).
- Click on "API Keys" or "API Access" from the dropdown menu.
Create a New API Key (if needed)
- If you do not have an existing API key, click the "Create API Key" button.
- Enter a name/label for your API key to identify it (e.g., "Claude Integration").
- Select the required permissions or scopes, if prompted (usually, "Full Access" or those needed for your workflow).
Copy Your API Key
- After creating the key, it will be displayed only once.
- Copy the API key (it may look like
app-xxxxxxxxxxxx
).
(Optional) Add Multiple API Keys
- If you wish to use more than one API key, repeat steps 3-4 and copy each key.
- You can use several API keys, separated by commas (e.g.,
app-FirstAPIKeyHere,app-SecondAPIKeyHere
).
Find Your Dify API Endpoint (Base URL)
- The default public endpoint is usually
https://api.dify.ai/v1
.
- If using a private or self-hosted Dify instance, obtain the correct API endpoint URL from your Dify deployment or administrator.
Fill the Values in the FastMCP Connection Interface
- Locate the fields for
DIFY_BASE_URL
and DIFY_API_KEY
or DIFY_API_KEYS
in the FastMCP connection setup.
- Paste your Dify API endpoint into the
DIFY_BASE_URL
field.
- Paste your API key (or keys, separated by commas) into the
DIFY_API_KEY
or DIFY_API_KEYS
field.
Click the "Install Now" Button
- Complete the connection by clicking "Install Now" to save and apply your environment variable settings.
You are now ready to use Dify Workflow through FastMCP!