Metadata-Version: 2.5
Name: choson-mcp
Version: 0.1.1
Summary: MCP server for the Chosŏn conjoint API: run studies from Claude or any MCP client
Project-URL: Homepage, https://quantecarlo.com
Project-URL: Documentation, https://quantecarlo.com/api.md
Project-URL: Source, https://github.com/sign-of-fourier/choson-mcp
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: mcp<2,>=1.20
Description-Content-Type: text/markdown

# choson-mcp

An MCP server for the Chosŏn conjoint API: upload survey data, fit, read results and run the simulators from Claude
(Claude Code, Claude Desktop) or any MCP client. It runs on your machine and calls `https://quantecarlo.com/api/v1`
with your API key. On the free plan, keys work on the sample (tutorial) studies; your own data needs a paid plan.

Step-by-step tutorial with sample prompts: https://quantecarlo.com/learn/claude-code/getting-started

## Set up

1. Create an API key: sign in at https://quantecarlo.com/app/, click API, Create key.
2. Add the server.

Claude Code:

```bash
claude mcp add choson -e CHOSON_API_KEY=chs_... -- uvx choson-mcp
```

Claude Desktop (`claude_desktop_config.json`):

```json
{"mcpServers": {"choson": {"command": "uvx", "args": ["choson-mcp"], "env": {"CHOSON_API_KEY": "chs_..."}}}}
```

The API itself is documented at https://quantecarlo.com/api.md.

## Tools

whoami, list_projects, create_project (`tutorial=True` loads a sample study), get_project, upload_data (a local file), get_dataset, set_design,
quote_fit (hardware, estimate and the 2-hour maximum, nothing queued), start_fit, fit_status, wait_for_fit,
cancel_fit, get_result (whole or one section), download (per-respondent CSV, workbook, Excel simulator),
simulate_shares, simulate_removal (diversion), price_sweep, elasticities, forecast, api_reference (the full API
reference) and call_api (any other /v1 route: range, recommend, test-next, optimize, segments, the menu, MaxDiff,
volumetric and claims tools, survey design).

The server asks the assistant to show you the hardware, estimate and maximum from quote_fit and get your go-ahead
before starting a fit. Every fit is stopped at 2 hours by the platform.

## Environment

| variable | default |
|---|---|
| `CHOSON_API_KEY` | required |
| `CHOSON_API_URL` | `https://quantecarlo.com/api/v1` |
