Skip to main content

Yantrabodha MCP Server

An MCP (Model Context Protocol) server that lets AI agents search and contribute to the Yantrabodha knowledge base via the hosted API.

Tools

Tool Description
yantrabodha_search Search articles by query, language, and type
yantrabodha_report Submit a new article to the knowledge base (API)

Setup

For Cursor / Claude / other MCP clients

Use the published package (recommended):

{
  "mcpServers": {
    "yantrabodha": {
      "command": "uvx",
      "args": ["yantrabodha-mcp"]
    }
  }
}

Or install from source and run as a module (from the mcp-server directory after pip install -e .):

{
  "mcpServers": {
    "yantrabodha": {
      "command": "python",
      "args": ["-m", "yantrabodha_mcp"]
    }
  }
}

Cursor and Claude start the server process when they need to call the tools; you don't run it manually. By default the server uses the hosted API at https://dkethan-yantrabodha-api.hf.space. To use a different API, set YANTRABODHA_API_URL in the env section.

Environment Variables

Variable Required Default Description
YANTRABODHA_API_URL No https://dkethan-yantrabodha-api.hf.space Base URL of the Yantrabodha API

Project layout (src layout)

mcp-server/
├── pyproject.toml
├── README.md
├── src/
│   └── yantrabodha_mcp/
│       ├── __init__.py     # package version, mcp export
│       ├── __main__.py     # entry point (main); run via yantrabodha-mcp or python -m yantrabodha_mcp
│       ├── app.py          # FastMCP instance
│       ├── config.py       # API URL and env
│       ├── models.py       # Pydantic models and enums
│       ├── api.py          # API client (search, create, sanitize, format)
│       └── tools.py        # MCP tools: yantrabodha_search, yantrabodha_report
└── tests/

Running

cd mcp-server
pip install -e .
yantrabodha-mcp

Or run as a module: python -m yantrabodha_mcp

Testing

pip install -e ".[dev]"
pytest tests/

How it works

  • Search — Calls GET /match on the API with your query and filters. Results come from the shared knowledge base (Supabase).
  • Report — Calls POST /post on the API with the article payload. The server sanitizes content (removes secrets, paths) before sending.

Metadata

Release files for yantrabodha-mcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yantrabodha-mcp 0.1.2
File Size Uploaded Provenance
yantrabodha_mcp-0.1.2.tar.gz 7.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for yantrabodha-mcp 0.1.2
File Interpreter ABI Platform
yantrabodha_mcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / yantrabodha_mcp-0.1.2.tar.gz

Download URL yantrabodha_mcp-0.1.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
04f232fa2b7e4fc207a728c3b164ab2789752bfc42c09002e3e166189f89efe2
BLAKE2b-256 checksum
How to use checksums
0a8cb3ce3d3f1dcdbc3f959d996a51c8264c0137678e9cb201e429e8ddf09729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / yantrabodha_mcp-0.1.2-py3-none-any.whl

Download URL yantrabodha_mcp-0.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0864649b7ea0f23776fff5596be46a3634d95671ea0f6a13464cb1b9d5d0aa88
BLAKE2b-256 checksum
How to use checksums
b086cb9904abd5045a5632d3bbaa5120a4ea9b07cea9afcef799e45c4f2262a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for yantrabodha-mcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page