mcpField
M
MCP Server

MCP Server

Local
github.com/hjlarryDeveloper Tools67Updated 71w ago

About MCP Server

MCP Server is a Dify endpoint plugin that turns a Dify app into an MCP server. It is intended for users who want to expose Dify workflows to MCP clients inside a private network, with optional Bearer token authentication.

Key features

  1. 01Exposes a Dify app as an MCP server
  2. 02Supports Streamable HTTP and legacy SSE protocols
  3. 03Optional Authorization Bearer token validation
  4. 04Responds to the MCP ping method for health checks

Use cases

  1. 01Providing a Dify workflow as a tool to Cherry Studio
  2. 02Hosting an MCP endpoint for Dify apps on a private network

MCP support

This project is an MCP server that serves a Dify app endpoint over Streamable HTTP or SSE for MCP clients to call.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server

Author: hjlarry
Version: 0.0.4
Type: extension
Repo: https://github.com/hjlarry/dify-plugin-mcp_server
Feature Request: issues

A Dify endpoint plugin that change a dify app to a mcp server.

To keep your data secure, use this plugin exclusively within your private network.

Get Started

1. create a simple workflow app in dify.

1

2. add a endpoint and select this app.

2

The app's input schema must define its input parameters. For a chat dify app, ensure to include a query field in the input schema, formatted as follows:

{
    "name": "get_weather",
    "description": "Get weather status for a place.",
    "inputSchema": {
        "properties": {
            "place": {"title": "Place", "type": "string"}
        },
        "required": ["place"],
        "title": "get_weatherArguments",
        "type": "object"
    }
}
3. copy the endpoint url to your mcp client, like Cherry Studio
Option 1: Use the newest Streamable HTTP protocol (Recommended)

6 7

Option 2: Use the legacy SSE protocol

3 4

4. enjoy it!

5

5. To keep your data secure, you can add a Auth Bearer Token on the endpoint setting.

For example, if your Auth Bearer Token is setting to sk-abcdefgh, then the request header of MCP client must add Authorization: Bearer sk-abcdefgh

Changelog

0.0.4
  • Add response to the ping method of MCP client, some clients use this method to check server health
  • Add Authorization: Bearer token validator
  • Fix some log incorrect
0.0.3
  • To fix sse get non-exist key get lots error logs on the plugin daemon.
  • Add logs to help debug problems.
  • Streamable http support response object and array.
0.0.2
  • Add a new Streamable HTTP protocol.
  • Update dify-plugin-sdk version.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.