open-index/open-npm huggingface dataset:
npm package: @iflow-mcp/media-gen-mcp
Description: MCP server for media generation
Latest version: 1.0.2

# Media Generator MCP Server

基于 fastmcp 的 MCP 服务，集成阿里云百炼平台通义万相模型实现文生图和文生视频功能。

## 安装

```bash
npm install
```

## 配置

1. 复制 `.env.example` 到 `.env`
2. 填入DashScope API密钥：
   ```
   DASHSCOPE_API_KEY=你的DashScope_API密钥
   ```

## 使用

### 开发模式
```bash
npm run dev
```

### 构建
```bash
npm run build
```

### 运行
```bash
npm start                     # stdio模式（默认）
npm start stream              # HTTP流模式（端口8080）
```

## 功能

### 1. 生成图片 (`generate_image`)

根据文本描述生成图片。

**参数：**
- `prompt` (必填): 图片文本描述
- `negative_prompt` (可选): 不希望在图片中出现的内容描述
- `size` (可选): 图片尺寸，可选值：
  - 1024*1024 (默认)
  - 720*1280
  - 1280*720
  - 768*1152
  - 1152*768
  - 512*512
  - 1440*1440
- `n` (可选): 生成图片数量，1-4，默认1
- `seed` (可选): 随机种子，用于生成可重复的结果
- `prompt_extend` (可选): 是否启用提示词智能改写，默认true
- `watermark` (可选): 是否添加AI生成水印，默认false

### 2. 生成视频 (`generate_video`)

根据文本描述生成视频。

**参数：**
- `prompt` (必填): 视频文本描述
- `negative_prompt` (可选): 不希望在视频中出现的内内容描述
- `size` (可选): 视频分辨率，可选值：
  - 1920*1080 (默认，1080P横屏)
  - 1080*1920 (1080P竖屏)
  - 1440*1440 (1080P方形)
  - 1632*1248 (1080P 4:3)
  - 1248*1632 (1080P 3:4)
  - 1280*720 (720P横屏)
  - 720*1280 (720P竖屏)
  - 960*960 (720P方形)
  - 1088*832 (720P 4:3)
  - 832*1088 (720P 3:4)
  - 832*480 (480P横屏)
  - 480*832 (480P竖屏)
  - 624*624 (480P方形)
- `model` (可选): 视频模型，可选值：
  - wan2.2-t2v-plus (默认)
  - wanx2.1-t2v-turbo
  - wanx2.1-t2v-plus
- `seed` (可选): 随机种子，用于生成可重复的结果
- `prompt_extend` (可选): 是否启用提示词智能改写，默认true
- `watermark` (可选): 是否添加AI生成水印，默认false


## 示例

### 生成图片
生成一张猫的图片：
```json
{
  "prompt": "一只可爱的橘猫坐在窗台上晒太阳",
  "size": "1024*1024"
}
```

### 生成视频
生成一只小猫在月光下奔跑的视频：
```json
{
  "prompt": "一只小猫在月光下奔跑，水墨画风格，背景是古色古香的中式庭院",
  "size": "1920*1080",
  "model": "wan2.2-t2v-plus"
}
```

## MCP服务配置

### Claude Desktop 配置
在 `claude_desktop_config.json` 中添加：

```json
{
  "mcpServers": {
    "media-gen": {
      "command": "npx",
      "args": ["-y", "media-gen-mcp"],
      "env": {
        "DASHSCOPE_API_KEY": "你的DashScope_API密钥"
      }
    }
  }
}
```

### Cursor 配置
在 `.cursor/mcp.json` 中添加：

```json
{
  "mcpServers": {
    "media-gen": {
      "command": "npx",
      "args": ["-y", "media-gen-mcp"],
      "env": {
        "DASHSCOPE_API_KEY": "你的DashScope_API密钥"
      }
    }
  }
}
```

### VS Code 配置
在 `settings.json` 中添加：

```json
{
  "mcp": {
    "servers": {
      "media-gen": {
        "command": "npx",
        "args": ["-y", "media-gen-mcp"],
        "env": {
          "DASHSCOPE_API_KEY": "你的DashScope_API密钥"
        }
      }
    }
  }
}
```

### HTTP模式使用
如需通过HTTP使用，先运行：
```bash
npm run build
npm start stream
```

然后配置MCP客户端连接到 `http://localhost:8080`
npm package: @iflow-mcp/mediapublishing-mcp-manager
Description: A web-based GUI tool for managing Model Context Protocol (MCP) servers in Claude and Cursor
Latest version: 1.0.0

# MCP Server Manager

A web-based GUI tool for managing Model Context Protocol (MCP) servers in Claude and Cursor. This tool allows you to easily enable/disable MCP servers and their tools through a user-friendly interface.

## Features

- 🎛️ Enable/disable MCP servers with simple toggle switches
- 🔄 Changes are automatically synced between Claude and Cursor
- 🛠️ View available tools for each server
- 🔒 Secure handling of environment variables and API keys
- 📱 Responsive design that works on any screen size

![MCP Server Manager Interface](https://github.com/MediaPublishing/mcp-manager/blob/main/MCP-Server-Manager.png?raw=true)

## Installation

1. Clone this repository:
```bash
git clone https://github.com/yourusername/mcp-manager.git
cd mcp-manager
```

2. Install dependencies:
```bash
npm install
```

3. Create a configuration file:
```bash
cp config.example.json config.json
```

4. Start the server:
```bash
npm start
```

5. Open http://localhost:3456 in your browser

## Configuration

The MCP Server Manager uses two configuration files:

- `config.json`: Main configuration file for the server
- Claude config: Located at `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
- Cursor config: Located at `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` (macOS)

### Example Configuration

```json
{
  "mcpServers": {
    "example-server": {
      "command": "node",
      "args": ["/path/to/server.js"],
      "env": {
        "API_KEY": "your-api-key"
      }
    }
  }
}
```

## Usage

1. Launch the MCP Server Manager
2. Use the toggle switches to enable/disable servers
3. Click "Save Changes" to apply your changes
4. Restart Claude to activate the new configuration

## Keywords

- Model Context Protocol (MCP)
- Claude AI
- Anthropic Claude
- Cursor Editor
- MCP Server Management
- Claude Configuration
- AI Tools Management
- Claude Extensions
- MCP Tools
- AI Development Tools

## Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments

- Built for use with Anthropic's Claude AI
- Compatible with the Cursor editor
- Uses the Model Context Protocol (MCP)