freesound-mcp
A Model Context Protocol (MCP) server that enables AI applications to search and download audio resources from the Freesound platform via natural language commands.
Freesound-MCP
A Model Context Protocol (MCP) server that enables AI applications to search and download audio resources from the Freesound platform via natural language commands.
Overview
Freesound-MCP is designed to simplify the integration of copyright-free sound resources into AI tools. It follows the Model Context Protocol standard and communicates with host applications via stdin/stdout. The server provides two main capabilities:
- 🔍 Search Sounds: Search for sounds by keywords with optional filters for maximum duration and license type
- ⬇️ Download Sounds: Download audio files by sound ID from Freesound
- 🎵 Metadata Support: Retrieve detailed information about sounds, including duration, license, and preview links
Features
- Lightweight MCP server built with Node.js
- Standard input/output communication mechanism compliant with MCP protocol
- Secure API key management through environment variables
- No database required - simple, stateless design
Prerequisites
- Node.js (supports CommonJS modules)
- npm or yarn package manager
- A Freesound API key (get one at Freesound API page)
Installation
- Clone the repository:
git clone https://github.com/yourusername/freesound-mcp.git
cd freesound-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
Setup
-
Get your Freesound API key from Freesound API page
-
Set your API key as an environment variable:
export FREESOUND_API_KEY=your_freesound_api_key_here
Configuration in Claude Desktop
To configure this MCP server in Claude Desktop:
- Open Claude Desktop preferences
- Navigate to "Beta Features" → "Model Context Protocol (MCP) Tools"
- Click "Configure" to manage MCP servers
- Add a new server configuration with these details:
- Name: "Freesound MCP"
- Command:
node - Arguments:
/path/to/freesound-mcp/dist/index.js(after runningnpm run build) - Environment Variables: Ensure
FREESOUND_API_KEYis available to the process
- Save the configuration and restart Claude
After restarting Claude, you'll be able to use the Freesound tools in your conversations.
Usage
Once configured in Claude, you can use natural language commands such as:
- "Find me a rainforest ambient sound under 30 seconds"
- "Download sound #123456 as high quality"
Available Tools
1. Freesound Search (freesound_search)
Search for sounds on Freesound by providing keywords and optional filters.
Parameters:
query(required): Search keywordsmaxDuration(optional): Maximum duration of sounds in secondslicense(optional): License type of sounds to search for
Returns:
- Array of sound objects containing:
id: Sound IDname: Sound nameduration: Sound duration in secondslicense: Sound licensepreview: Sound preview URL
2. Freesound Download (freesound_download)
Download a sound from Freesound by sound ID.
Parameters:
soundId(required): ID of the sound to downloadquality(optional): Audio quality ('hq' for high quality or 'lq' for low quality), defaults to 'lq'downloadDir(optional): Custom download directory, defaults to ~/.freesound-mcp/downloads
Returns:
filePath: Path where the file was downloaded
Security Considerations
- Keep your
FREESOUND_API_KEYsecret and never expose it in client-side code - Input parameters are validated to prevent malicious IDs from being passed to the API
- The server follows MCP security best practices for communication
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Thanks to Freesound for providing the audio resources API
- Built using the Model Context Protocol SDK
Related Servers
Bright Data
sponsorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
MyBrowserAPI
A browser API for interacting with web services like X, Reddit, ChatGPT, and WhatsApp using Puppeteer.
Trends Hub
Aggregates trending topics from over 20 sources in real-time, with customizable fields and RSS feed support.
WebSearch
A web search and content extraction tool using the Firecrawl API for advanced web scraping, searching, and content analysis.
BrowserCat
Automate remote browsers using the BrowserCat API.
AI Shopping Assistant
A conversational AI shopping assistant for web-based product discovery and decision-making.
LinkedIn MCP
Scrape LinkedIn profiles and companies, get recommended jobs, and perform job searches.
Patchright Lite MCP Server
A server that wraps the Patchright SDK to provide stealth browser automation for AI models.
Kakuyomu MCP Server
An MCP server for the Kakuyomu novel posting site, enabling users to search for works, retrieve episode lists, and read content.
NBA Player Stats
Provides comprehensive NBA player statistics from basketball-reference.com, including career stats, season comparisons, and advanced metrics.
Github to MCP
Convert GitHub repositories to MCP servers automatically. Extract tools from OpenAPI, GraphQL & REST APIs for Claude Desktop, Cursor, Windsurf, Cline & VS Code. AI-powered code generation creates type-safe TypeScript/Python MCP servers. Zero config setup - just paste a repo URL. Built for AI assistants & LLM tool integration.