Context7

View as Markdown

Context7 is a documentation index that AI coding assistants query through MCP to get current, version-accurate docs while you code. The Sarvam docs are indexed there, so any assistant with the Context7 MCP server connected can pull them on demand — no Sarvam-specific configuration needed.

Library ID

The Sarvam documentation is available under the library ID:

/websites/sarvam_ai

You can browse the index directly at context7.com/websites/sarvam_ai.

Setup

Install the Context7 MCP server in your client (see the Context7 setup guide for all clients):

Cursor / Claude Code (mcp.json)
1{
2 "mcpServers": {
3 "context7": {
4 "command": "npx",
5 "args": ["-y", "@upstash/context7-mcp"]
6 }
7 }
8}

Usage

Once connected, reference the library in your prompt:

“Use library /websites/sarvam_ai. Write a Python script that transcribes audio.wav with the latest Sarvam speech-to-text model.”

The assistant fetches the relevant Sarvam doc pages through Context7 and writes code against the current API.

Context7 vs. the Sarvam docs MCP server

Both give assistants live access to the docs. Use whichever fits your setup:

Context7Sarvam docs MCP server
Best whenYou already use Context7 for other librariesYou want a dedicated Sarvam docs search tool
SetupOne MCP server covers many librariesOne MCP server per docs site
SourceContext7’s index of docs.sarvam.aiAsk Fern search over the live docs