Skip to main content

thodr-mcp

Create live mock API endpoints from your AI editor. Ask Cursor, Claude Desktop, or Copilot to "spin up a mock for the users API" and get back a real, shareable HTTPS URL in seconds — no dashboard, no curl, no context switch.

thodr-mcp is an MCP server that connects your AI assistant to Thodr, the hosted mock API platform. Your editor drives it; it turns the request into real projects and endpoints on your Thodr account.

Quick start

1. Get a token. In the Thodr web app, open Settings → Access Tokens, create one, and copy it (thodr_pat_…, shown once).

2. Add it to your editor's MCP config:

{
  "mcpServers": {
    "thodr": {
      "command": "uvx",
      "args": ["thodr-mcp"],
      "env": {
        "THODR_API_URL": "https://thodr.com/api",
        "THODR_TOKEN": "thodr_pat_xxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

(uvx runs it on demand — no manual install. Prefer pip? pip install thodr-mcp. Not sure where the config file lives? Check your editor's MCP docs — Cursor and Claude Desktop both have a settings page for it.)

3. Ask your assistant:

Create a Thodr project called "orders-api" with a GET /orders/{id} endpoint that returns a sample order.

You'll get back a live URL like https://thodr.com/mock/orders-api-a1b2c3/orders/42 that you can hit immediately, share with a teammate, or point your app at.

Tools

Tool What it does
create_project Create a mock project; returns its slug and base mock URL.
list_projects List your projects with their mock URLs and route counts.
add_endpoint Add an endpoint (method, path, status, body, headers, delay); returns its live URL.
list_endpoints List a project's endpoints and their URLs.
get_mock_url Build the live URL for a project + path.

Read and create only — delete projects or endpoints from the web app.

Good to know

  • Your token is yours. It acts as you, with your plan's limits, and never grants admin. Revoke it anytime from Settings → Access Tokens. It's sent only to your THODR_API_URL and is never logged.
  • It's free to run. The server makes plain API calls; your editor supplies the model, so there's no inference cost here.
  • Self-hosting Thodr? Point THODR_API_URL at your instance (e.g. http://localhost/api).

Prefer to script the token instead of clicking? While logged in:

curl -X POST https://thodr.com/api/auth/tokens \
  -H "Authorization: Bearer <your-session-jwt>" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-ide"}'

Development

cd mcp-server
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest -v
python -m thodr_mcp   # runs the stdio server locally

Metadata

Release files for thodr-mcp 0.1.1

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

Source distribution (sdist)

Source distribution for thodr-mcp 0.1.1
File Size Uploaded Provenance
thodr_mcp-0.1.1.tar.gz 15.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for thodr-mcp 0.1.1
File Interpreter ABI Platform
thodr_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.7 kB

Release files / thodr_mcp-0.1.1.tar.gz

Download URL thodr_mcp-0.1.1.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cbeadeb9974e6af1c80693249878980b8c9a36005791b89f65fbdb098f980cc6
BLAKE2b-256 checksum
How to use checksums
4580bbb084d595d619c4b1edf6dafe85ebf213c2c730a43ebc7a8a21a1d5d89a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / thodr_mcp-0.1.1-py3-none-any.whl

Download URL thodr_mcp-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f30a323f06b9cad0af3e5a03e90c5340cd59dc4de7d506dbab9e925cbdf07bce
BLAKE2b-256 checksum
How to use checksums
cad03609a897d686bd8b26a84608f9dfb8b4f3d773a4d5407bd024add76a2d65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for thodr-mcp 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thodr_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

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