Typecast语音生成
STDIO实现Typecast API与MCP客户端集成
实现Typecast API与MCP客户端集成
MCP Server for typecast-api, enabling seamless integration with MCP clients. This project provides a standardized way to interact with Typecast API through the Model Context Protocol.
This project implements a Model Context Protocol server for Typecast API, allowing MCP clients to interact with the Typecast API in a standardized way.
Feature | Status |
---|---|
Voice Management | |
Get Voices | ✅ |
Text to Speech | ✅ |
Play Audio | ✅ |
git clone https://github.com/hyunseung/typecast-api-mcp-server-sample.git cd typecast-api-mcp-server-sample
This project requires Python 3.10 or higher and uses uv
for package management.
# Create virtual environment and install packages uv venv uv pip install -e .
Set the following environment variables:
TYPECAST_API_HOST=https://api.typecast.ai TYPECAST_API_KEY=<your-api-key> TYPECAST_OUTPUT_DIR=<your-output-directory> # default: ~/Downloads/typecast_output
You can add the following to your claude_desktop_config.json
:
{ "mcpServers": { "typecast-api-mcp-server": { "command": "uv", "args": [ "--directory", "/PATH/TO/YOUR/PROJECT", "run", "typecast-api-mcp-server" ], "env": { "TYPECAST_API_HOST": "https://api.typecast.ai", "TYPECAST_API_KEY": "YOUR_API_KEY", "TYPECAST_OUTPUT_DIR": "PATH/TO/YOUR/OUTPUT/DIR" } } } }
Replace /PATH/TO/YOUR/PROJECT
with the actual path where your project is located.
You can also run the server manually:
uv run python app/main.py
Contributions are always welcome! Feel free to submit a Pull Request.
MIT License