Freesound MCP
This MCP server lets AI clients search Freesound sounds and download audio by sound ID.
Search sounds using keywords, with optional license and maximum-duration filters.
Download a sound from Freesound by its sound ID.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Freesound MCP find rain sounds under 30 seconds with a Creative Commons 0 license"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A Model Context Protocol server that lets AI applications search, inspect, discover similar sounds, and download audio from Freesound using natural language.
Freesound-MCP speaks MCP over stdio, keeps no database, and runs as a single Node.js process. It is designed for Claude Desktop, Cursor, VS Code, and any other MCP-compatible host.
Contents
Related MCP server: strongerfx
Overview
🔍 Search by keywords with pagination, sorting, duration ranges, license, tags, file type, category, uploader, and pack grouping.
🎵 Inspect full metadata for a single sound: description, author, license, technical audio properties, preview URLs, and waveform/spectrogram images.
🔗 Discover similar sounds using Freesound's acoustic and semantic similarity spaces, with relevance scores.
⬇️ Download preview MP3/OGG files, or the original upload when OAuth2 is configured. Files are streamed to disk and safely named.
📎 Resources and prompts for license guidance, search syntax, attribution, and layered sound-design workflows.
🛡️ Resilient requests with timeouts, exponential backoff, and
Retry-Aftersupport.
Tools
Tool | Description | Read-only |
| Search sounds with filters, sorting, and pagination | Yes |
| Find sounds similar to a reference sound | Yes |
| Get detailed metadata for one sound | Yes |
| Download a preview or original file to disk | No |
freesound_search
Parameter | Type | Default | Description |
| string | — (required) | Keywords; pass an empty string to browse all sounds |
| integer |
| Page number |
| integer |
| Results per page, 1-150 |
| string |
|
|
| number | — | Minimum duration in seconds |
| number | — | Maximum duration in seconds |
| string | — |
|
| string[] | — | Tags that every result must contain (AND) |
| string | — |
|
| string | — | Broad Sound Taxonomy category, for example |
| string | — | Uploader username |
| boolean |
| Return at most one sound per pack |
Returns count, page, pageSize, totalPages, and results. Each result
contains id, name, duration, license, preview, and, when available,
username, tags, type, channels, samplerate, filesize, downloads,
rating, and score.
{
"count": 128,
"page": 1,
"pageSize": 15,
"totalPages": 9,
"results": [
{
"id": 123456,
"name": "Rain on a tin roof",
"duration": 12.4,
"license": "Creative Commons 0",
"preview": "https://cdn.freesound.org/previews/...",
"username": "fieldrecordist",
"tags": ["rain", "ambience"],
"type": "wav",
"samplerate": 48000,
"downloads": 421,
"rating": 4.6
}
]
}freesound_similar
Parameter | Type | Default | Description |
| integer | — (required) | Reference Freesound sound ID |
| integer |
| Page number |
| integer |
| Results per page, 1-150 |
| string | API default |
|
Returns the same paginated structure as freesound_search, including a
relevance score for every result.
freesound_get_sound
Parameter | Type | Description |
| integer | Freesound sound ID (required) |
Returns id, name, description, tags, license, username, and
duration, plus optional type, channels, samplerate, filesize,
bitrate, bitdepth, created, url, downloadUrl, previewHqMp3,
previewLqMp3, previewHqOgg, previewLqOgg, waveformUrl,
spectrogramUrl, downloads, rating, numRatings, numComments,
category, subcategory, pack, and genAiPreference.
downloadUrl points at the original file endpoint and requires OAuth2.
freesound_download
Parameter | Type | Default | Description |
| integer | — (required) | Freesound sound ID |
| string |
|
|
| string | generated | Output filename; unsafe characters are stripped and the extension is enforced |
| string |
| Target directory; supports |
Returns filePath, soundId, name, quality, format, bytes,
duration, license, and sourceUrl.
Notes:
Preview downloads do not require OAuth2 and are MP3/OGG transcodes, not the original upload.
quality: "original"requiresFREESOUND_OAUTH_TOKENand downloads the file as uploaded.Files are streamed to a temporary file and atomically renamed, so an interrupted download never leaves a partial file under the final name.
Resources
MCP resources provide reference material and live metadata that clients can attach as context.
URI | Description |
| Creative Commons license table, attribution template, and checklist |
| Keyword syntax, filters, sorting, pagination, and follow-up tools |
| Detailed JSON metadata for one sound (resource template) |
Prompts
Prompt templates guide the model through common Freesound workflows.
Prompt | Arguments | Description |
|
| Plan and execute a filtered search |
|
| Generate attribution text and license obligations |
|
| Build a layered ambience/foley/accent palette |
Requirements
Node.js 20 or newer
npm 9 or newer (or pnpm/yarn)
A Freesound API key from the Freesound API documentation
Optional: a Freesound OAuth2 access token for original-quality downloads
Installation
From npm
npx -y @mushan_bit/freesound-mcpThe server speaks MCP over stdio, so it is normally launched by your MCP client rather than run by hand.
From source
git clone https://github.com/MuShan-bit/freesound-mcp.git
cd freesound-mcp
npm ci
npm run buildDirectory listings
Configuration
Environment variables
Variable | Required | Default | Description |
| Yes | — | API token used for search and metadata requests |
| No | — | OAuth2 access token for |
| No |
| Default download directory |
| No |
| Per-request timeout in milliseconds |
| No |
| Retries for 429/5xx, timeouts, and network errors (0-5) |
| No |
| Base delay for exponential backoff |
| No |
| API base URL override (testing or proxy) |
Requests that receive 429 Too Many Requests honour the Retry-After header
(up to 10 seconds) before retrying. Other retryable failures use exponential
backoff with jitter.
Claude Desktop
Add this to claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"freesound": {
"command": "npx",
"args": ["-y", "@mushan_bit/freesound-mcp"],
"env": {
"FREESOUND_API_KEY": "your_freesound_api_key"
}
}
}
}To run a local build instead:
{
"mcpServers": {
"freesound": {
"command": "node",
"args": ["/absolute/path/to/freesound-mcp/build/index.js"],
"env": {
"FREESOUND_API_KEY": "your_freesound_api_key",
"FREESOUND_OAUTH_TOKEN": "optional_oauth2_token"
}
}
}
}Restart the client after editing the configuration.
Cursor
Add the same mcpServers object to ~/.cursor/mcp.json (global) or
.cursor/mcp.json (project).
VS Code
Add the server to .vscode/mcp.json:
{
"servers": {
"freesound": {
"command": "npx",
"args": ["-y", "@mushan_bit/freesound-mcp"],
"env": {
"FREESOUND_API_KEY": "your_freesound_api_key"
}
}
}
}Usage
Ask your AI client in natural language:
"Find me a rainforest ambience under 30 seconds with a Creative Commons 0 license."
"Search for CC0 piano samples, newest first, 5 per page."
"Show me the details for sound #123456."
"Find sounds similar to #123456."
"Download sound #123456 as a high-quality preview."
"Download the original file for #123456." (requires OAuth2)
The model calls the tools above and reports the license and author returned by Freesound.
Security and licensing
Keep
FREESOUND_API_KEYandFREESOUND_OAUTH_TOKENsecret. Pass them through your MCP client'senvblock, never through source control.Freesound content is licensed under Creative Commons terms. Check the
licensefield before use, credit the author, and respectAttribution NonCommercialrestrictions.freesound_downloadwrites to the local filesystem. Choose a writabledownloadDirand avoid running the server with elevated privileges.Filenames supplied by callers are sanitized, and downloads are written to a temporary file before being renamed into place.
Troubleshooting
Symptom | Fix |
| Check |
| Lower request frequency or increase |
| Set an OAuth2 token to use |
"does not expose a downloadable preview" | The sound has no previews; try another sound or original download |
Download fails with | Choose a writable |
Server missing from the client | Run |
Development
npm ci
npm run build # compile TypeScript to build/
npm run typecheck # type-check without emitting
npm test # build + run the node:test suite
npm start # run the compiled stdio serverThe test suite uses Node's built-in test runner and mocks fetch, so it runs
offline without a Freesound API key. The runner collects *.test.js files
explicitly, so npm test also works on Node.js 20 and Windows shells. CI runs
the same commands on Node.js 20, 22, and 24.
Project layout:
src/index.ts— stdio entry point and shutdown handlingsrc/server.ts— MCP tool registration, schemas, and error mappingsrc/freesound/client.ts— authenticated HTTP client, timeouts, retriessrc/freesound/search.ts— search parameters, filters, and result mappingsrc/freesound/similar.ts— similar-sounds endpointsrc/freesound/sounds.ts— sound details, preview/original downloadssrc/freesound/errors.ts— structured error typessrc/resources.ts— MCP resources and the sound metadata templatesrc/prompts.ts— MCP prompt templatesserver.json— official MCP Registry metadatatest/— unit tests, in-memory MCP tests, and a real stdio end-to-end test
Contributing
Contributions are welcome! Please open an issue first for major changes, then submit a pull request. Keep the test suite green and update the README and CHANGELOG for user-visible changes.
License
This project is licensed under the MIT License — see LICENSE for details.
Acknowledgments
Available Tools
2 toolsfreesound.downloadC
Download a sound from Freesound by sound ID
Inputs: soundId (required).
freesound.searchC
Search sounds from Freesound
Inputs: query (required), maxDuration, license.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: one is for downloading a specific sound by ID, and the other is for searching sounds based on criteria. There is no overlap or ambiguity between these operations, making it clear when to use each tool.
Both tools follow a consistent naming pattern with the prefix 'freesound.' followed by a verb (download, search) that clearly describes the action. This uniformity makes the tool set predictable and easy to understand.
With only two tools, the server feels too minimal for a comprehensive Freesound integration. While search and download are core operations, obvious gaps like browsing, getting sound details, or managing user content are missing, limiting functionality.
The tool set is severely incomplete for interacting with Freesound. It lacks essential operations such as retrieving sound metadata, listing categories, or handling user authentication, which are necessary for full agent workflows in this domain.
Maintenance
Related MCP Connectors
CC0 sound effects API for AI agents — search, preview, and download via MCP.
Free sound effects, music and ambience for games, videos and apps. Search, play and download.
Search free music and sound effects (SFX), mostly CC0, with license terms and credit lines.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with Freesound.org to enable searching, discovering, and previewing audio content such as sound effects and music loops. It provides detailed metadata and licensing information to support video editing and content creation workflows.11MIT
- AlicenseNot gradedqualityCmaintenanceProvides local MCP tools to search and retrieve CC0 sound effects by keyword, category, duration, or ID, along with metadata, previews, and WAV/MP3 download URLs.MIT

Soundza MCP serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants and code to search a large library of free sound effects, music, and ambience by keywords and filters such as type, length, tempo, key, mood, and use case. It also exposes full metadata for individual sounds and themed packs, plus download links with ready-to-run curl commands for pulling the full-quality files.1MIT- AlicenseAqualityBmaintenanceEnables AI assistants to search, explore, compare, download previews of, and generate attribution for Freesound.org audio through MCP tools over stdio or authenticated HTTP.13MIT