# setup

{% stepper %}
{% step %}

### Claude Desktop

Add to your Claude Desktop config file:

**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "yesno": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://yesno.events/mcp"],
      "env": {}
    }
  }
}
```

If authentication is enabled on the server, add your token:

```json
{
  "mcpServers": {
    "yesno": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://yesno.events/mcp"],
      "env": {
        "MCP_TOKEN": "your-token-here"
      }
    }
  }
}
```

Restart Claude Desktop after saving.
{% endstep %}

{% step %}

### Cursor

Add to your Cursor MCP settings (`.cursor/mcp.json` in your project or global config):

```json
{
  "mcpServers": {
    "yesno": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://yesno.events/mcp"],
      "env": {}
    }
  }
}
```

{% endstep %}

{% step %}

### Claude Code (CLI)

Add via the CLI:

```bash
claude mcp add yesno -- npx -y mcp-remote https://yesno.events/mcp
```

Or add to your project's `.mcp.json`:

```json
{
  "mcpServers": {
    "yesno": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://yesno.events/mcp"]
    }
  }
}
```

{% endstep %}

{% step %}

### Programmatic Access (curl)

You can also call the MCP endpoint directly:

```bash
# List available tools
curl -X POST https://yesno.events/mcp \
  -H "Content-Type: application/json" \
  -d '{"method": "tools/list"}'

# Call a tool
curl -X POST https://yesno.events/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "method": "tools/call",
    "params": {
      "name": "get_markets",
      "arguments": {"sector": "politics", "limit": 5}
    }
  }'
```

For authenticated tools, add the header:

```bash
-H "Authorization: Bearer your-token-here"
```

{% endstep %}
{% endstepper %}

### Verifying the Connection

After setup, ask your AI assistant:

> "What are the top prediction markets right now?"

If it responds with live market data, the connection works. If it says it doesn't have access to prediction market tools, check your config file path and restart the application.

### Authentication

Some tools require authentication (analysis, signals, news). These are marked as `(auth)` in the [Tools](broken://pages/3f77dda8f15c30fd3ae0f0ea1f66dbbe8d06ee67) reference. If no `MCP_TOKEN` is configured on the server, all tools are open.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yesno-1.gitbook.io/yesno-docs/mcp-server/setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
