MCP Server
Sarvam API MCP server
Official Sarvam Model Context Protocol (MCP) server. Exposes every public Sarvam API (STT, TTS, Translate, Transliterate, Language ID, Text Analytics, LLM (30B / 105B), Vision Document Intelligence, Pronunciation Dictionaries) as first-class MCP tools so any MCP-aware client (Claude Desktop, Claude Code, Cursor, Windsurf, Zed) can call Sarvam with zero boilerplate.
Cross-platform Python package: macOS, Windows, and Linux (Python 3.11+).
Quickstart
1. Get your API key
Sign up or log in at dashboard.sarvam.ai/key-management and copy your API key.
2. Add to your MCP client
Paste this JSON into your favorite agent (Cursor, Claude Desktop, Windsurf, etc.) and it’ll set up Sarvam for you:
Replace <YOUR_SARVAM_API_KEY> with your actual API key.
Verify your install
Ask your assistant something that exercises a Sarvam tool, for example:
“Translate ‘good morning’ to Hindi using sarvam.”
Tools
All defaults below reflect the latest non-deprecated models.
Configuration
Two namespaces
The server exposes tools across two namespaces:
sarvam_tools_*— runtime tools. Call Sarvam APIs to do things (transcribe, speak, translate, etc.).sarvam_code_*— builder tools. Help you write code that uses Sarvam: docs, endpoint shapes, language lists, code snippets, starter projects.