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, base mock URL, and workspace (personal or team).
list_projects List your projects with their mock URLs, route counts, and which workspace each belongs to (personal or team).
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.

Works with Cursor, Claude Desktop, Antigravity, and any MCP-compatible editor. When adding an endpoint, pass a structured response body as a JSON object (not just a JSON string) — your assistant's object output lands correctly either way.

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.3

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.3
File Size Uploaded Provenance Actions
thodr_mcp-0.1.3.tar.gz 19.0 kB With provenance Details for thodr_mcp-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 31.2 kB

Release files / thodr_mcp-0.1.3.tar.gz

Download URL thodr_mcp-0.1.3.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dd615517aed97a9cdf17df0668cf1c57a9b7d106cc30109dd0689e042cc6de1c
BLAKE2b-256 checksum
How to use checksums
54c7112539fa2b3af5338cd3adc9e73c47a6f5a5bd5e43b521aed753f4c1ac5f
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 21, 2026.

Transparency log

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

Download URL thodr_mcp-0.1.3-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe28a0e08a5fd4af1f34e201089c9b04d64cc76217b8fa4f69a6910db6b69165
BLAKE2b-256 checksum
How to use checksums
e9a2ca4916a7669a7f514515e3cd07b834f7cc2296b13dfb6bd4e099fa1ddb34
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 21, 2026.

Transparency log

Security for thodr-mcp 0.1.3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thodr_mcp-0.1.3.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 21, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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