Metadata-Version: 2.4
Name: trustrag-mcp
Version: 0.1.2
Summary: MCP server for TrustRAG — trust-verified RAG exposed as tools for Claude Desktop, Cursor, and other MCP clients
Project-URL: Homepage, https://github.com/jigangz/TrustRAG
Project-URL: Repository, https://github.com/jigangz/TrustRAG
Project-URL: Issues, https://github.com/jigangz/TrustRAG/issues
Author-email: Jigang Zhou <zjg0907008@gmail.com>
License: MIT
License-File: LICENSE
Keywords: anthropic,claude,mcp,rag,trust
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Requires-Dist: mcp>=0.9
Requires-Dist: pydantic>=2
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-asyncio; extra == 'dev'
Description-Content-Type: text/markdown

# trustrag-mcp

MCP server for TrustRAG — trust-verified RAG exposed as tools for Claude Desktop, Cursor, and other MCP clients.

## Installation

```bash
pip install trustrag-mcp
```

## Usage

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "trustrag": {
      "command": "uvx",
      "args": ["trustrag-mcp"],
      "env": {
        "TRUSTRAG_BACKEND_URL": "http://localhost:8000"
      }
    }
  }
}
```

### Direct

```bash
# Via entry point
trustrag-mcp

# Via module
python -m trustrag_mcp
```

## Tools

| Tool | Description |
|------|-------------|
| `trustrag_query` | Ask the knowledge base with trust filtering |
| `trustrag_upload_document` | Upload a PDF to the knowledge base |
| `trustrag_get_audit_log` | Fetch recent query audit entries |

## Configuration

Set `TRUSTRAG_BACKEND_URL` environment variable (default: `http://localhost:8000`).
