Skip to main content
Glama

audio-mcp

A mock-first Model Context Protocol server for audio generation. It creates deterministic placeholder WAV files locally, making it possible to develop and test an audio-tool workflow without credentials, network calls, or generation fees.

Tools

  • generate_music(prompt, duration_seconds=2.0)

  • generate_sound_effect(prompt, duration_seconds=1.0)

  • get_generation_status(generation_id)

Generation calls complete synchronously and return a generation ID plus a local asset containing its path, file URI, MIME type, format, and duration. Durations must be between 0.1 and 30 seconds.

Related MCP server: io.github.chicogong/ffvoice

Development

Python 3.10 or newer is required.

python -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
pytest

The integration test launches the STDIO server, initializes an MCP client, lists the tools, calls every tool, and checks the generated WAV asset.

Run the server

The default transport is STDIO:

python -m audio_mcp.server

Generated files are written to .audio-mcp/. Override that location with AUDIO_MCP_OUTPUT_DIR.

To register a development checkout with Codex CLI:

codex mcp add audio-dev -- python -m audio_mcp.server
codex mcp list

The server intentionally has no paid provider integration. A production provider can later implement the same asset response contract once the MCP workflow has been validated.

Available Tools

3 tools
generate_musicB

Generate a mock music WAV from a text prompt.

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYes
duration_secondsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description should disclose behavioral traits like side effects, authentication, or limitations. It only states the core function, failing to mention whether it is deterministic, asynchronous, or has any system impact. The word 'mock' hints at non-production intent, but no operational details are given.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with no redundant information. It front-loads the action and resource immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with an output schema, the description conveys the core purpose but omits usage guidance and parameter semantics. The sibling tool generate_sound_effect creates ambiguity that the description does not explicitly resolve, so the context is not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain parameters. It mentions 'text prompt' which maps to the prompt parameter, but duration_seconds is entirely unaddressed. The schema provides titles and a default, but the description adds no extra meaning beyond reinforcing prompt's semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action ('Generate') and resource ('music WAV') with a source ('text prompt'). The inclusion of 'mock' and 'music' distinguishes it from generate_sound_effect and get_generation_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through 'music' vs the sibling 'generate_sound_effect', but it does not explicitly provide when-to-use guidance or mention alternatives such as get_generation_status. It does not state when NOT to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_sound_effectB

Generate a mock sound-effect WAV from a text prompt.

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYes
duration_secondsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. The word 'mock' hints at non-real output, but the description does not disclose whether generation is synchronous or asynchronous, what the returned object contains, or any rate limits or side effects. Significant gaps remain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one short, front-loaded sentence that communicates core purpose without any filler. It is appropriately concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The presence of sibling get_generation_status strongly suggests this tool might return a job ID requiring polling, but the description omits this critical workflow context. Additionally, the duration_seconds parameter is not explained. While an output schema exists, the description fails to convey the overall generation lifecycle.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It clarifies prompt as a 'text prompt', but duration_seconds is not mentioned at all; the schema only provides a title and default, which is insufficient for understanding units, constraints, or behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Generate a mock sound-effect WAV from a text prompt.' It clearly distinguishes from get_generation_status and implies a different output than generate_music, though it doesn't explicitly contrast with that sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context is clear (use when you want a sound effect from a prompt), but there is no explicit guidance on when to choose this over generate_music, nor mention of asynchronous behavior that might require get_generation_status. It's implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_generation_statusA

Return the state and asset metadata for a generation.

ParametersJSON Schema
NameRequiredDescriptionDefault
generation_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description is the only behavioral signal, and it indicates a read-only operation via 'Return.' However, it does not mention error behavior, idempotency, or what happens when the generation_id is invalid, leaving the agent with limited understanding of the tool's side effects and failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no redundant information. Every word contributes to clarifying the tool's purpose, making it highly efficient for agent reading.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple status-retrieval tool with one required parameter and an output schema, so the description does not need to explain return values. It covers the essential purpose, though it omits hints about polling behavior or invalid IDs; still, the overall context is adequate for a getter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description refers to 'a generation,' which naturally maps to the generation_id parameter, but it does not explain how to obtain or format the ID. Given 0% schema description coverage, the description adds minimal value beyond the parameter name's self-evident meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Return' and names the resource as 'state and asset metadata for a generation,' clearly defining the tool's action. This distinguishes it from sibling tools that generate music or sound effects, which are about creation rather than status retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is used to check on an existing generation, likely after using one of the generation siblings. It does not explicitly state when not to use it or name alternatives, but the context is clear enough for an agent to infer the appropriate scenario.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.7/5.0
Disambiguation5/5

Each tool has a distinct purpose: generating music, generating sound effects, and checking generation status. The two generation tools are clearly separated by output type, and the status tool is orthogonal to the generation actions.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case: generate_music, generate_sound_effect, and get_generation_status. The naming is uniform and predictable.

Tool Count4/5

Three tools is on the lean side but appropriate for a focused mock audio generation service. The set covers the essential operations without superfluous additions.

Completeness4/5

The tools cover the core workflow of starting a generation and checking its status. Minor gaps like canceling or listing generations exist but are not critical for a mock service.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/narteyr/audio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server