> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.casestudies.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.casestudies.dev/_mcp/server.

# MCP Server

> Connect casestudies.dev to Claude, ChatGPT, and other AI agents.

Give your AI agents direct access to case study search, company analysis, and vendor comparison.

## What is MCP?

Model Context Protocol (MCP) lets AI agents use external tools. The casestudies.dev MCP server gives any MCP-compatible agent (Claude Desktop, Claude Code, ChatGPT with plugins, custom agents) access to our full API through natural conversation.

## Setup

### Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "casestudies": {
      "command": "python",
      "args": ["/path/to/mcp-server/server.py"],
      "env": {
        "CASESTUDIES_API_KEY": "cs_live_your_key_here"
      }
    }
  }
}
```

### Claude Code

```bash
claude mcp add casestudies python /path/to/mcp-server/server.py -e CASESTUDIES_API_KEY=cs_live_xxx
```

### Requirements

* Python 3.10+
* `httpx` (`pip install httpx`)
* A casestudies.dev API key

## Available tools

| Tool                   | What it does                                            |
| ---------------------- | ------------------------------------------------------- |
| `search_case_studies`  | Semantic search with natural language queries           |
| `get_case_study`       | Get full details of a specific case study               |
| `search_companies`     | Find companies by name or industry                      |
| `get_company_analysis` | Competitor analysis — top industries, clients, outcomes |
| `compare_vendors`      | Side-by-side comparison of up to 5 companies            |
| `get_company_timeline` | Chronological view for due diligence                    |

## Example prompts

Once connected, just ask:

* "Find case studies about companies that improved onboarding conversion"
* "What industries does Checkout.com serve? Show me their notable clients"
* "Compare GoCardless, Checkout.com, and Paddle for ecommerce payments"
* "Show me how fintech companies have reduced customer churn"

## Source code

The MCP server is open source: [github.com/casestudies-dev/casestudies/mcp-server](https://github.com/casestudies-dev/casestudies/tree/master/mcp-server)