Setu — Sarvam MCP Server
Exposes Sarvam AI's speech, translation, chat, and document APIs as typed MCP tools for any MCP-capable agent.
README
Setu — Sarvam MCP Server
Open-source Model Context Protocol server that exposes Sarvam AI's API surface as typed tools, so any MCP-capable agent (Claude Desktop, Cursor, Claude Code, or a custom LangGraph agent) can use Sarvam speech / translation / chat / document tools in minutes.
Live demo & write-up: https://aquamarine-buttercream-058e45.netlify.app/setu
Status — Milestone 2 (first Sarvam tools)
Setu now exposes its first real Sarvam tools — sarvam_transcribe (Saaras v3
speech-to-text) and sarvam_speak (Bulbul v3 text-to-speech) — alongside the
setu_ping health check, over stdio. A SETU_MODE=mock|live switch means both
tools run against deterministic fixtures by default (no key, no credits), and route to
the real Sarvam SDK when SETU_MODE=live. Signatures are verified against the Sarvam
API reference.
| Milestone | Scope | State |
|---|---|---|
| 1 | Scaffold, config, structlog, FastMCP setu_ping over stdio |
✅ |
| 2 | sarvam_transcribe + sarvam_speak, mock/live dispatch |
✅ this repo |
| 3 | Retry, rate-limit, cost/latency OTel telemetry middleware | ⬜ |
| 4 | translate, chat, transliterate, identify_language, parse_document |
⬜ |
| 5 | Fixtures hardening, coverage, CI | ⬜ |
| 6 | streamable-HTTP transport, Dockerfile, docs | ⬜ |
| 7 | 60-sec demo, tag → PyPI | ⬜ |
Tools
| Tool | Model | Key inputs | Output |
|---|---|---|---|
setu_ping |
— | message |
server/version/mode echo |
sarvam_transcribe |
Saaras v3 | audio_base64|audio_url, language_code=auto, mode=codemix |
text, language, confidence, latency_ms |
sarvam_speak |
Bulbul v3 | text, target_language_code, speaker, model |
audio_base64 (WAV), format, chars, latency_ms |
Try them in mock mode with no key. To go live, set SETU_MODE=live and SARVAM_API_KEY,
then install the SDK extra: pip install -e '.[live]'.
Quickstart
# 1. Create a virtualenv and install (editable, with dev extras)
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
# 2. Copy the env template (defaults to mock mode — no key needed)
cp .env.example .env
# 3. Run the server over stdio
setu # or: python -m setu.server
# 4. Run the tests
pytest
setu speaks the MCP protocol on stdout, so it looks like it "hangs" — that's correct;
it's waiting for an MCP client. Logs go to stderr as JSON. Press Ctrl-C to stop.
Configuration
All config is environment-driven (pydantic-settings); secrets never get hardcoded.
| Variable | Default | Meaning |
|---|---|---|
SETU_MODE |
mock |
mock serves fixtures (no credits); live calls Sarvam (milestone 2+). |
SETU_SERVER_NAME |
setu |
Name advertised to MCP clients. |
SETU_LOG_LEVEL |
INFO |
structlog level. |
SETU_RATE_LIMIT_PER_MINUTE |
60 |
Reserved for the token-bucket limiter (milestone 3). |
SARVAM_API_KEY |
— | Sarvam key; only needed in live mode. Get one at dashboard.sarvam.ai. |
Connect to Claude Desktop
-
Find the absolute path to the
setuentrypoint inside your venv:source .venv/bin/activate which setu # e.g. /Users/you/setu-mcp/.venv/bin/setu -
Open Claude Desktop → Settings → Developer → Edit Config. This opens
claude_desktop_config.json. Add Setu undermcpServers:{ "mcpServers": { "setu": { "command": "/ABSOLUTE/PATH/TO/setu-mcp/.venv/bin/setu", "env": { "SETU_MODE": "mock" } } } }(On Windows the path ends in
\.venv\Scripts\setu.exe.) -
Fully quit and reopen Claude Desktop. Click the tools/🔌 icon in the chat box — you should see setu listed with the
setu_pingtool. -
Ask Claude: "Use the setu_ping tool with message 'it works'." You should get back a typed result showing
ok: true, the server name, version, andmode: mock.
If the server doesn't appear, check Claude Desktop's MCP logs
(~/Library/Logs/Claude/mcp*.log on macOS) — Setu's JSON logs on stderr are captured there.
Layout
setu-mcp/
├─ pyproject.toml # package + tooling (ruff, mypy, pytest)
├─ .env.example # config template (mock by default)
├─ src/setu/
│ ├─ config.py # SetuSettings + SarvamSettings (pydantic-settings)
│ ├─ logging.py # structlog → stderr, JSON, request ids
│ ├─ modes.py # live vs mock dispatch
│ ├─ sarvam_client.py # async wrapper over the Sarvam SDK (mock/live)
│ ├─ fixtures/ # deterministic mock responses
│ ├─ app.py # shared FastMCP app + Sarvam client + settings
│ ├─ tools/
│ │ ├─ health.py # setu_ping
│ │ ├─ transcribe.py # sarvam_transcribe (Saaras v3)
│ │ └─ speak.py # sarvam_speak (Bulbul v3)
│ └─ server.py # transport entrypoint (registers tools, runs stdio)
└─ tests/
├─ test_ping.py # health-check + registration
└─ test_tools.py # transcribe/speak (mock) + skipped live smoke test
License
MIT © 2026 Manasa SB
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.