Content
# Sonauto Music Generation MCP Server
Music generation server for Claude Desktop using Sonauto's API.
## Install
```bash
npm install
npm run build
export SONAUTO_API_KEY=your_key_here
```
## Config
Add to Claude Desktop config:
### Direct Node.js
```json
{
"mcpServers": {
"music-generator": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/YOUR/sonauto-mcp/dist/index.js"],
"env": {
"SONAUTO_API_KEY": "your_key_here"
}
}
}
}
```
## Tools
### generate_music
Generates music based on text descriptions using the Sonauto API.
Parameters:
```typescript
{
prompt: string, // Text description of music to generate
num_songs?: number // Number of songs to generate (default: 1)
}
```
The tool returns audio content that can be played directly in Claude Desktop.
Sample usage:
```javascript
const result = await client.callTool({
name: "generate_music",
arguments: {
prompt: "An upbeat rock song about how awesome programming is",
num_songs: 1
}
});
```
Response format:
```
Music generated successfully!
Generation details:
- Prompt: "An upbeat rock song about how awesome programming is"
- Lyrics: [Generated lyrics appear here]
The audio file is attached and ready to play.
```
## Development Setup
1. Create a `.env` file in the project root with your Sonauto API key:
```
SONAUTO_API_KEY=your_sonauto_api_key_here
```
2. Install dependencies and build:
```bash
npm install
npm run build
```
3. Start the server:
```bash
npm start
```
## Troubleshooting
If the music generation tool is not working:
1. Ensure your Sonauto API key is correctly set in the environment or .env file
2. Check that the API key is valid and has not expired
3. Look for error messages in the server logs
## License
This project is licensed under the MIT License.
Connection Info
You Might Also Like
OpenAI Whisper
OpenAI Whisper MCP Server - 基于本地 Whisper CLI 的离线语音识别与翻译,无需 API Key,支持...
markitdown
Python tool for converting files and office documents to Markdown.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)
continue
Continue is an open-source project for seamless server management.
claude-flow
Claude-Flow v2.7.0 is an enterprise AI orchestration platform.