Content
# dify-server MCP Server
A Model Context Protocol server integrated with Dify AI API
This is an MCP server based on TypeScript that provides code generation capabilities for Ant Design business components by integrating the Dify AI API. It demonstrates the following core MCP concepts:
- Integration of Dify AI API to achieve chat completion functionality
- Support for text and image input
- Streamed response handling
## Features
### Tools
- `antd-component-codegen-mcp-tool` - Generates Ant Design business component code
- Supports text and optional image input
- Handles image file uploads
- Supports streamed responses from Dify AI API
## Development Guide
Install dependencies:
```bash
npm install
```
Development mode (automatic rebuild):
```bash
npm run watch
```
Build the server:
```bash
npm run build
```
## Installation Instructions
### Integration in Continue
Add the following configuration in `~/.continue/config.json`:
```json
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "node",
"args": ["your/path/dify-server/build/index.js"],
"env": {
"DIFY_API_KEY": "***"
}
}
}
]
}
}
```
### Integration in Cline
Add the following configuration in `your/path/cline_mcp_settings.json`:
```json
{
"mcpServers": {
"dify-server": {
"command": "node",
"args": ["your/path/dify-server/build/index.js"],
"env": {
"DIFY_API_KEY": "***"
}
}
}
}
```
### Debugging
Since the MCP server communicates via standard input/output (stdio), debugging may be somewhat challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which can be started with the following command:
```bash
npm run inspector
```
The Inspector will provide a debugging tool URL accessible in the browser.
Connection Info
You Might Also Like
MarkItDown MCP
MarkItDown-MCP is a lightweight server for converting various URIs to Markdown.
Context 7
Context7 MCP provides up-to-date code documentation for any prompt.

Continue
Continue is an open-source project for seamless server management.
mcp
MCP Server enables seamless interaction between LLMs and Salesforce orgs.
mcp-proxy-server
MCP Proxy Server offers web UI management, flexible authentication, and...
web3-research-mcp
Web3 Research MCP offers comprehensive crypto research and reporting.