Skip to main content
Glama
m18500749500-create

Contract Review Demo MCP Server

README.md
# Contract Review Demo MCP Server

This is a public-safe demo MCP server for learning how to package Tools,
Resources, and Prompts. It uses fictional contract text and local demo rules
only.

## Safety Scope

This project is intentionally limited:

- No real contracts
- No real company, customer, case, or personal data
- No database access
- No internal network access
- No external API calls
- No API keys
- No file writes or deletion tools
- No legal advice

All outputs are examples for MCP learning.

## Capabilities

### Tools

- `classify_contract_type`: classifies fictional contract text with local demo
  keyword rules.
- `generate_demo_risk_checklist`: returns a fictional risk checklist for
  learning and product validation.

### Resources

- `demo://contract/main`: a fictional service contract.
- `demo://rules/review`: fictional review rules.

### Prompts

- `contract_review_template`: a reusable demo prompt for structured contract
  review.

## Local Run

Install dependencies in a Python 3.10+ environment:

```bash
python -m pip install -r requirements.txt
```

Run the server:

```bash
python server.py
```

## Testing

From the repository root:

```bash
python3 -m unittest contract-review-demo-mcp/tests/test_demo_server.py
```

## Publishing Notes

This demo is safe to publish because it exposes only fictional metadata and
local deterministic behavior. Before publishing, review this README,
`smithery.yaml`, and `server.py` to confirm no real business data or credentials
were added.

When publishing through Smithery, use a dedicated demo GitHub repository that
contains only this folder's files.

If you publish it for learning, remove or unpublish it after the exercise if you
do not want the demo to remain discoverable.