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

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.2
File Size Uploaded Provenance
thodr_mcp-0.1.2.tar.gz 15.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 26.3 kB

Release files / thodr_mcp-0.1.2.tar.gz

Download URL thodr_mcp-0.1.2.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d9fc86a42453b6391f39812e534153490820f118026b829fd19b8c9d562c01f3
BLAKE2b-256 checksum
How to use checksums
58d3786fda7d1905c1d535cbaa03c8d68038504072a60f1d7ff707cc177b8d21
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.2-py3-none-any.whl

Download URL thodr_mcp-0.1.2-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
042c58cab5f08f50ae6852cd3c9d796e829848726fd79a0b4e8806cf837cc6e6
BLAKE2b-256 checksum
How to use checksums
6fd835b815aea524f66f0d6fc8fea01a85b0828f97f8696a9a4647eddf6ceeca
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.2

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