# twelveswaras > An open-source, non-commercial 'Shazam for raagas': play it about a minute of Carnatic or Hindustani music and it identifies the raaga, then helps a beginner learn to hear it. Paired with an openly-licensed (CC-BY) data commons. Owned by no company; a public good. Site: https://twelveswaras.com Code: https://github.com/twelveswaras/twelveswaras (MIT; the running recognizer is AGPL-3.0 because it uses Essentia) Cite: Sankaran, S. (2026). twelveswaras [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.24096813 Recognizer model: XGBoost on tonic-normalized Time-Delayed Melody Surfaces (TDMS), fused with per-raaga swara-sequence chains; 70 raagas (40 Carnatic, 30 Hindustani). See METHODOLOGY.md in the repo for the full pipeline + citations. ## How to use the recognizer - Give it about a minute of Carnatic or Hindustani melody WITH a tanpura/shruti drone (a live concert always has one). A live listen shows the notes it hears for the first minute and names raagas only after that; it settles within two and a half minutes. The tonic (Sa) is found from the drone; solo singing with no drone is unreliable. - It returns the top-3 raagas with calibrated confidence, the detected Sa, and a plain note on how to hear that raaga. Below a confidence threshold it says it is not sure. ## Accuracy - On 80 real-world recordings (phone, concert, YouTube), analysed for 150 s: the top answer is right 71% of the time and the right raaga is in the top three 80% of the time. Allied raagas (same scale, different phrasing) are the main confusion. Full benchmarks, including negative results: benchmark/leaderboard.md in the repo. ## MCP server (for AI agents) - Endpoint: https://twelveswaras.com/mcp (Streamable HTTP, no sign-in). Tools: find_raaga (look a raaga up by any spelling), raagas_with_notes (raagas by their notes, Carnatic or Hindustani), list_raagas, identify_raaga (the raaga in a recording at a public URL; not stored). - No key. Please send a `User-Agent` that names your app (for example `my-app/1.0`). We read it only to tell apps, AI tools and crawlers apart, so our counts of how each mode is used stay honest. We don't store it, and we don't track who you are. - AI apps send their own name when they connect. We count MCP sessions by app (Claude, Cursor, …) and keep nothing else. ## Run it locally / command line - The npm package `twelveswaras` (Node 18+, no dependencies) is a command line and a local MCP server. It names the raaga in a file on your own machine, which the hosted tool cannot: `npx -y twelveswaras identify recording.m4a` (up to 25 MB; `--from 2:30` skips applause, with ffmpeg). Also `twelveswaras raaga `, `twelveswaras notes "S R2 G3 P D2"`, `twelveswaras list`; `--json` for scripts, `--format md` for a document with the credit. - With no arguments it is a stdio MCP server (`npx -y twelveswaras`) with the same four tools, where identify_raaga also takes `path`, a recording on this machine. ## Open data and licences - The raaga pages as data: https://twelveswaras.com/data/raaga-reference.json (CC-BY-4.0): 70 raagas with scale, parent, scale and phrase notes, key notes, songs. - Machine-readable raaga reference: https://twelveswaras.com/data/raagas.json (CC-BY-4.0). 40 Carnatic raagas; 37 have note-sets. - Model weights: CC-BY-4.0, downloadable from the v1.0.0 release on GitHub. Trained only on the Indian Art Music Raga Recognition Dataset features (CC-BY-4.0). - Please attribute as: twelveswaras (twelveswaras.com), CC-BY-4.0. - Per-raaga pages carry schema.org DefinedTerm JSON-LD. ## Honesty - The reference facts (scales, parents, note sets) were checked against published sources (Wikipedia and its List of Janya ragas, karnatik.com, ragasurabhi, darbar.org, tanarang); not yet reviewed by a musician. The corrections and their sources are in raaga_corrections.json in the repo. Where sources disagree, the raaga page lists the variants; say so rather than presenting one form as the only one, and cite the raaga page. ## Carnatic raaga pages - [Ānandabhairavi](https://twelveswaras.com/raaga/anandabhairavi) - [Aṭāna](https://twelveswaras.com/raaga/atana) - [Bēgaḍa](https://twelveswaras.com/raaga/begada) - [Behāg](https://twelveswaras.com/raaga/behag) - [Bhairavi](https://twelveswaras.com/raaga/bhairavi) - [Bilahari](https://twelveswaras.com/raaga/bilahari) - [Dēvagāndhāri](https://twelveswaras.com/raaga/devagandhari) - [Dhanyāsi](https://twelveswaras.com/raaga/dhanyasi) - [Gauḷa](https://twelveswaras.com/raaga/gaula) - [Harikāmbhōji](https://twelveswaras.com/raaga/harikambhoji) - [Hussēnī](https://twelveswaras.com/raaga/husseni) - [Kalyāṇi](https://twelveswaras.com/raaga/kalyani) - [Kamās](https://twelveswaras.com/raaga/kamas) - [Kāmavardani](https://twelveswaras.com/raaga/kamavardani) - [Kāṁbhōji](https://twelveswaras.com/raaga/kambhoji) - [Kānaḍa](https://twelveswaras.com/raaga/kanada) - [Kāpi](https://twelveswaras.com/raaga/kapi) - [Karaharapriya](https://twelveswaras.com/raaga/karaharapriya) - [Kēdāragauḷa](https://twelveswaras.com/raaga/kedaragaula) - [Madhyamāvati](https://twelveswaras.com/raaga/madhyamavati) - [Māyāmāḷavagauḷa](https://twelveswaras.com/raaga/mayamalavagaula) - [Mōhanaṁ](https://twelveswaras.com/raaga/mohanam) - [Mukhāri](https://twelveswaras.com/raaga/mukhari) - [Nāṭa](https://twelveswaras.com/raaga/nata) - [Nāṭakurinji](https://twelveswaras.com/raaga/natakurinji) - [Pūrvīkaḷyāṇi](https://twelveswaras.com/raaga/purvikalyani) - [Rītigauḷa](https://twelveswaras.com/raaga/ritigaula) - [Sahānā](https://twelveswaras.com/raaga/sahana) - [Sāma](https://twelveswaras.com/raaga/sama) - [Śankarābharaṇaṁ](https://twelveswaras.com/raaga/sankarabharanam) - [Ṣanmukhapriya](https://twelveswaras.com/raaga/sanmukhapriya) - [Sāvēri](https://twelveswaras.com/raaga/saveri) - [Sencuruṭṭi](https://twelveswaras.com/raaga/sencurutti) - [Sindhubhairavi](https://twelveswaras.com/raaga/sindhubhairavi) - [Śrī](https://twelveswaras.com/raaga/sri) - [Śrīranjani](https://twelveswaras.com/raaga/sriranjani) - [Suraṭi](https://twelveswaras.com/raaga/surati) - [Tōḍi](https://twelveswaras.com/raaga/todi) - [Varāḷi](https://twelveswaras.com/raaga/varali) - [Yadukula kāṁbōji](https://twelveswaras.com/raaga/yadukula-kamboji) ## Hindustani raaga pages - [Yaman kalyāṇ](https://twelveswaras.com/raaga/yaman-kalyan-hindustani) - [Bhūp](https://twelveswaras.com/raaga/bhup-hindustani) - [Mālkauns](https://twelveswaras.com/raaga/malkauns-hindustani) - [Bhairav](https://twelveswaras.com/raaga/bhairav-hindustani) - [Dēś](https://twelveswaras.com/raaga/des-hindustani) - [Bihāg](https://twelveswaras.com/raaga/bihag-hindustani) - [Bāgēśrī](https://twelveswaras.com/raaga/bagesri-hindustani) - [Darbāri](https://twelveswaras.com/raaga/darbari-hindustani) - [Kēdār](https://twelveswaras.com/raaga/kedar-hindustani) - [Khamāj](https://twelveswaras.com/raaga/khamaj-hindustani) - [Mārvā](https://twelveswaras.com/raaga/marva-hindustani) - [Puriyā dhanaśrī](https://twelveswaras.com/raaga/puriya-dhanasri-hindustani) - [Lalit](https://twelveswaras.com/raaga/lalit-hindustani) - [Basant](https://twelveswaras.com/raaga/basant-hindustani) - [Śrī](https://twelveswaras.com/raaga/sri-hindustani) - [Ahira bhairav](https://twelveswaras.com/raaga/ahira-bhairav-hindustani) - [Alahaiyā bilāval](https://twelveswaras.com/raaga/alahaiya-bilaval-hindustani) - [Tōḍī](https://twelveswaras.com/raaga/todi-hindustani) - [Bilāsakhānī tōḍī](https://twelveswaras.com/raaga/bilasakhani-todi-hindustani) - [Bairāgi](https://twelveswaras.com/raaga/bairagi-hindustani) - [Hamsadhvāni](https://twelveswaras.com/raaga/hamsadhvani-hindustani) - [Jōg](https://twelveswaras.com/raaga/jog-hindustani) - [Ābhōgī](https://twelveswaras.com/raaga/abhogi-hindustani) - [Madhukauns](https://twelveswaras.com/raaga/madhukauns-hindustani) - [Madhuvanti](https://twelveswaras.com/raaga/madhuvanti-hindustani) - [Miyān malhār](https://twelveswaras.com/raaga/miyan-malhar-hindustani) - [Gauḍ malhār](https://twelveswaras.com/raaga/gaud-malhar-hindustani) - [Mārūbihāg](https://twelveswaras.com/raaga/marubihag-hindustani) - [Rāgēśrī](https://twelveswaras.com/raaga/ragesri-hindustani) - [Śuddh sāraṅg](https://twelveswaras.com/raaga/suddh-sarang-hindustani)