# Cynthia by Planet Leads (`ramelhyman/cynthia-mcp-server`) Actor

Cynthia, by Planet Leads — an MCP server that exposes Cynthia's verified knowledge as tools other AI agents and apps can call. Verified answers from 33 facts; honest abstention when unknown.

- **URL**: https://apify.com/ramelhyman/cynthia-mcp-server.md
- **Developed by:** [Ramel Hyman](https://apify.com/ramelhyman) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Cynthia MCP Server

**Cynthia, by Planet Leads — created by Ramel Hyman.**

An MCP server that exposes Cynthia's verified knowledge as tools other
AI agents and apps can call. Cynthia answers ONLY from her verified
facts and honestly abstains when she does not know — she never invents
an answer.

- **No model calls. No API keys. No paid services.** The lookup is a
  deterministic local router (BM25 + Dice) over 33 owner-approved
  verified facts. It runs entirely on your machine.
- **Server name:** `cynthia` — **version:** `1.0.0`

### Tools

| Tool | What it does |
|---|---|
| `ask_cynthia` | Ask a question in plain English. Returns the verified answer verbatim, labelled **"Verified answer"** — or an honest abstention ("I don't know — this isn't in my verified knowledge") when nothing matches. Never invents. |
| `cynthia_capabilities` | What Cynthia can do and the rules she follows (verified answers only, owner approval on risky actions, free-only building, subscription guard, no card storage, cannot cancel/refund a Shopify charge, not a Muse). |
| `cynthia_status` | Server version, number of verified facts (33), lookup method, and health check. |

### Example call

```json
// ask_cynthia
{ "question": "Who created Cynthia?" }

// → "Verified answer:\nCynthia OS, by Planet Leads — created by Ramel Hyman.
//    Planet Leads is a tech and software company that builds systems
//    that make life easier."
```

```json
// ask_cynthia
{ "question": "Do you repair bicycles?" }

// → "I don't know — this isn't in my verified knowledge.\nI don't have
//    a verified answer for that one yet, so I won't guess. ..."
```

### Run it

#### stdio (MCP clients, Claude Desktop, MCPize)

```bash
python3 -m venv venv
venv/bin/pip install -r requirements.txt
python cynthia_server.py
```

Claude Desktop config (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "cynthia": {
      "command": "/absolute/path/to/cynthia-mcp-server/venv/bin/python",
      "args": ["/absolute/path/to/cynthia-mcp-server/cynthia_server.py"]
    }
  }
}
```

#### Streamable HTTP (Apify Actors, FiatDock, hosted use)

```bash
python cynthia_server.py --http --host 0.0.0.0 --port 8000
## MCP endpoint: http://<host>:8000/mcp
```

#### Docker (Apify Actor)

```bash
docker build -t cynthia-mcp-server .
docker run -p 8000:8000 cynthia-mcp-server
## MCP endpoint: http://localhost:8000/mcp
```

The container serves Streamable HTTP by default. For stdio inside a
container, override the command: `docker run -i cynthia-mcp-server python cynthia_server.py`.

### How the lookup works

`router.py` is the verified-lookup-v2 router, reused unchanged:
pure-Python BM25 over the 33 store documents (question tokens ×3,
keyword tokens ×2, answer tokens ×1) plus a Dice-overlap term against
the entry's question tokens. Frozen thresholds: `MIN_SCORE 5.5`,
`MIN_MARGIN 0.10`, `OVERLAP_WEIGHT 5.0`. On the held-out 99 questions
it scored 78 exact / 79 fact-match / 0 inventions. A new fact is added
only when the owner approves it, by editing `verified_store.json` —
never by retraining.

### Files

| File | Purpose |
|---|---|
| `cynthia_server.py` | MCP server (stdio + Streamable HTTP) |
| `router.py` | Verified-lookup router (reused, unchanged) |
| `verified_store.json` | The 33 verified facts |
| `requirements.txt` | `mcp`, `uvicorn` |
| `Dockerfile` | Container image (Streamable HTTP on :8000) |
| `test_client.py` | Stdio test harness (lists tools, calls all 3) |
| `BUILD-REPORT.md` | What was built, test results, listing checklist |

### Licence

Proprietary — Copyright © 2026 Ramel Hyman, Planet Leads. See `LICENSE`.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("ramelhyman/cynthia-mcp-server").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("ramelhyman/cynthia-mcp-server").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call ramelhyman/cynthia-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ramelhyman/cynthia-mcp-server"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9NFdNma8IPD0rIA1u/builds/3yKI3ueBgWQ9LAPTY/openapi.json
