Skip to main content
Glama
yuru-sha

MCP Server for Dify AI

by yuru-sha

mcp-server-dify

CI-Status

Model Context Protocol Server für Dify AI. Dieser Server ermöglicht LLMs die Interaktion mit den Chat-Vervollständigungsfunktionen von Dify AI über ein standardisiertes Protokoll.

Merkmale

  • Integration mit der Dify AI-API zur Chat-Vervollständigung

  • Restaurant-Empfehlungstool (Meshi-Doko)

  • Unterstützung für Konversationskontext

  • Unterstützung für Streaming-Antworten

  • TypeScript-Implementierung

Related MCP server: Dify MCP Server

Installation

Verwenden von Docker

# Build the Docker image
make docker

# Run with Docker
docker run -i --rm mcp/dify https://your-dify-api-endpoint your-dify-api-key

Verwendung

Mit Claude Desktop

Fügen Sie Ihrer claude_desktop_config.json die folgende Konfiguration hinzu:

{
  "mcpServers": {
    "dify": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dify",
        "https://your-dify-api-endpoint",
        "your-dify-api-key"
      ]
    }
  }
}

Ersetzen Sie your-dify-api-endpoint und your-dify-api-key durch Ihre tatsächlichen Dify-API-Anmeldeinformationen.

Werkzeuge

meshi-doko

Restaurant-Empfehlungstool mit Schnittstelle zur Dify-KI:

Parameter:

  • LOCATION (Zeichenfolge): Standort des Restaurants

  • BUDGET (Zeichenfolge): Budgetbeschränkungen

  • query (Zeichenfolge): An Dify AI zu sendende Abfrage

  • conversation_id (Zeichenfolge, optional): Zur Aufrechterhaltung des Chat-Kontexts

Entwicklung

# Initial setup
make setup

# Build the project
make build

# Format code
make format

# Run linter
make lint

Lizenz

Dieses Projekt wird unter der MIT-Lizenz veröffentlicht.

Sicherheit

Dieser Server interagiert mit Dify AI über den von Ihnen bereitgestellten API-Schlüssel. Achten Sie darauf:

  • Bewahren Sie Ihre API-Anmeldeinformationen sicher auf

  • Verwenden Sie HTTPS für den API-Endpunkt

  • Übergeben Sie API-Schlüssel niemals der Versionskontrolle

Beitragen

Beiträge sind willkommen! Senden Sie gerne einen Pull Request.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables the conversion of Dify applications into Model Context Protocol tools, supporting streaming responses and configured via YAML.
    5
    ISC
  • F
    license
    Not graded
    quality
    C
    maintenance
    A Dify endpoint plugin that transforms a Dify application into a Model Control Protocol server, allowing tools like Cursor to connect to and utilize your custom Dify workflows.
    67
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables seamless integration between Claude AI and Dify Workflow through the Model Context Protocol, allowing Claude to dynamically access and execute Dify Workflow operations via natural language.
    23 npm
    8
    ISC