fatebook-mcp


Namefatebook-mcp JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryModel Context Protocol server for Fatebook prediction tracking
upload_time2025-08-16 20:46:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.13
licenseNone
keywords fatebook forecasting mcp model-context-protocol predictions
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Fatebook MCP Server

[![PyPI version](https://badge.fury.io/py/fatebook-mcp.svg)](https://badge.fury.io/py/fatebook-mcp) [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/) [![CI](https://github.com/an1lam/fatebook-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/an1lam/fatebook-mcp/actions/workflows/ci.yml)

A Model Context Protocol (MCP) server that provides integration with [Fatebook](https://fatebook.io), a prediction tracking platform. This server allows AI assistants like Claude to create, manage, and track predictions directly through MCP.

<a href="https://glama.ai/mcp/servers/@an1lam/fatebook-mcp">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/@an1lam/fatebook-mcp/badge" alt="Fatebook Server MCP server" />
</a>

## Features

- **Create Questions**: Make predictions with forecasts (0-100% probability)
- **List Questions**: View your predictions with filtering options
- **Get Question Details**: Retrieve comprehensive information about specific questions
- **Add Forecasts**: Update your predicted probabilities on existing questions
- **Add Comments**: Add commentary to track your reasoning
- **Resolve Questions**: Mark questions as resolved (YES/NO/AMBIGUOUS)
- **Edit Questions**: Update question titles, resolve dates, and notes
- **Delete Questions**: Remove questions you no longer need
- **Count Forecasts**: Track your forecasting activity

## Testing and Compatibility

This MCP server has been tested on Mac OS X 14.5 with:

- Claude Code (CLI)
- Claude Desktop
- MCP Inspector

As far as I know, it doesn't violate any MCP protocol requirements but given that MCP is an evolving protocol, certain features or MCP clients may not be fully supported. If you encounter issues with other MCP implementations, please report them as GitHub issues.

## Installation

### Prerequisites

- Python 3.13 or higher
- [uv](https://github.com/astral-sh/uv) (recommended) or pip
- A Fatebook account and API key

### Getting your Fatebook API Key

1. Sign in to [Fatebook](https://fatebook.io)
2. Navigate to [API Setup](https://fatebook.io/api-setup)
3. Generate and copy your API key

### Option 1: Install from PyPI (Recommended)

Install the package directly from PyPI:

```bash
pip install fatebook-mcp
```

Or using uv:

```bash
uv add fatebook-mcp
```

### Option 2: Install from Source

For development or the latest features:

1. Clone the repository:

```bash
git clone https://github.com/an1lam/fatebook-mcp.git
cd fatebook-mcp
```

2. Install dependencies using uv:

```bash
uv sync
```

## Quick Start

### Running Directly with uvx

The easiest way to test the server after installation is with uvx:

```bash
# Run directly from PyPI (no installation needed)
uvx fatebook-mcp

# Or run from local directory during development
uvx --from . fatebook-mcp
```

The server will start and wait for MCP client connections via stdio. Use Ctrl+C to stop it.

## Usage with Claude Desktop and [Claude Code](https://www.anthropic.com/claude-code)

### Claude Desktop

Add one of the following configurations to your Claude Desktop configuration file:

#### macOS
Location: `~/Library/Application Support/Claude/claude_desktop_config.json`

#### Windows
Location: `%APPDATA%\Claude\claude_desktop_config.json`

#### Option 1: Using PyPI Package (Recommended)

```json
{
  "mcpServers": {
    "fatebook": {
      "command": "uvx",
      "args": ["fatebook-mcp"],
      "env": {
        "FATEBOOK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

**Note**: If Claude Desktop can't find `uvx`, use the full path instead:
```json
{
  "mcpServers": {
    "fatebook": {
      "command": "/Users/yourusername/.local/bin/uvx",
      "args": ["fatebook-mcp"],
      "env": {
        "FATEBOOK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

Find your uvx path with: `which uvx`

#### Option 2: Development/Source Installation

```json
{
  "mcpServers": {
    "fatebook": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/fatebook-mcp",
        "run",
        "python",
        "-m",
        "fatebook_mcp"
      ],
      "env": {
        "FATEBOOK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

Replace `/path/to/fatebook-mcp` with the actual path to where you cloned this repository.

### Claude Code (CLI)

For Claude Code, you can add this server in several ways:

#### Option 1: Using PyPI Package (Recommended)

```bash
# Add the Fatebook MCP server using uvx
claude mcp add fatebook --env FATEBOOK_API_KEY=your-api-key-here -- uvx fatebook-mcp

# Verify it was added successfully
claude mcp list
```

#### Option 2: Import from Claude Desktop

If you already have this configured in Claude Desktop, you can import those settings:

```bash
claude mcp add-from-claude-desktop
```

#### Option 3: Project-specific configuration

Create a `.mcp.json` file in your project:

**Using PyPI package:**
```json
{
  "mcpServers": {
    "fatebook": {
      "command": "uvx",
      "args": ["fatebook-mcp"],
      "env": {
        "FATEBOOK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

If `uvx` is not found, use the full path (find with `which uvx`):
```json
{
  "mcpServers": {
    "fatebook": {
      "command": "/Users/yourusername/.local/bin/uvx",
      "args": ["fatebook-mcp"],
      "env": {
        "FATEBOOK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

**Using development/source installation:**
```json
{
  "mcpServers": {
    "fatebook": {
      "command": "uv",
      "args": ["--directory", "/path/to/fatebook-mcp", "run", "python", "-m", "fatebook_mcp"],
      "env": {
        "FATEBOOK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

Replace `/path/to/fatebook-mcp` with the actual path to where you cloned this repository.



## Development & Testing
### Additional setup
Beyond the above setup that's needed even just to use the MCP server, running the MCP server as standalone and running its tests require fetching your API key and exporting it in your environment.

You can do this either by exporting it directly:

```bash
export FATEBOOK_API_KEY="your-api-key-here"
```

Or create a `.env` file:

```
FATEBOOK_API_KEY=your-api-key-here
```

### Running integration tests

Run the integration tests to verify your setup:

```bash
uv run test_client.py
```

This will test all available endpoints and confirm the server is working correctly.

**Note**: These tests will only succeed if you have the right API key for the test user. If you're developing such that you need to run these tests, for now email me (the author).

### Running the Server Locally

**Using uvx (recommended):**
```bash
uvx --from . fatebook-mcp
```

**Using uv run with module:**
```bash
uv run python -m fatebook_mcp
```

The server will start and wait for MCP client connections.

## Testing and Compatibility

This MCP server has been tested with:

- Claude Code (CLI)
- Claude Desktop
- MCP Inspector

As MCP is an evolving protocol, certain features or MCP clients may not be fully supported. If you encounter issues with other MCP implementations, please report them as GitHub issues.

## Troubleshooting

### uvx Command Not Found

If Claude Desktop shows "command not found" errors for `uvx`:

1. **Find your uvx path**:
   ```bash
   which uvx
   ```

2. **Use the full path** in your configuration:
   ```json
   "command": "/Users/yourusername/.local/bin/uvx"
   ```

3. **Common uvx locations**:
   - macOS: `/Users/yourusername/.local/bin/uvx`
   - Linux: `/home/yourusername/.local/bin/uvx`

### API Key Issues

- Ensure your API key is valid and active
- Check that the API key is properly set in environment or config
- Try providing the API key directly in the request

### Connection Issues

- Verify the server path in your Claude Desktop config is correct
- Check that Python 3.13+ is installed and accessible
- Ensure uv dependencies are properly installed with `uv sync`

### Question Format

- Dates should be in YYYY-MM-DD format
- Forecast values must be between 0.0 and 1.0
- Question IDs are provided when creating questions

## Claude Desktop Examples

**Creating and tracking a prediction:**
![example interaction](./example_claude_desktop_interaction_1.png)

**Reviewing your predictions:**
![example review interaction](./example_claude_desktop_interaction_2.png)


## API Documentation

For more details about the Fatebook API, see:

- [Fatebook API Setup](https://fatebook.io/api-setup)
- [OpenAPI Specification](https://fatebook.io/api/openapi.json)

## Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

## Support

For issues with:

- **This MCP server**: Open an issue on GitHub
- **Fatebook API**: Contact Fatebook support
- **MCP/Claude Desktop**: See [MCP documentation](https://modelcontextprotocol.io)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fatebook-mcp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.13",
    "maintainer_email": null,
    "keywords": "fatebook, forecasting, mcp, model-context-protocol, predictions",
    "author": null,
    "author_email": "Stephen Malina <stephen.malina@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/63/90/d03a225c6130f94f4a3fa7cbdeb7b4dbabfe58f6164573bed6046301eff4/fatebook_mcp-0.1.0.tar.gz",
    "platform": null,
    "description": "# Fatebook MCP Server\n\n[![PyPI version](https://badge.fury.io/py/fatebook-mcp.svg)](https://badge.fury.io/py/fatebook-mcp) [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/) [![CI](https://github.com/an1lam/fatebook-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/an1lam/fatebook-mcp/actions/workflows/ci.yml)\n\nA Model Context Protocol (MCP) server that provides integration with [Fatebook](https://fatebook.io), a prediction tracking platform. This server allows AI assistants like Claude to create, manage, and track predictions directly through MCP.\n\n<a href=\"https://glama.ai/mcp/servers/@an1lam/fatebook-mcp\">\n  <img width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/@an1lam/fatebook-mcp/badge\" alt=\"Fatebook Server MCP server\" />\n</a>\n\n## Features\n\n- **Create Questions**: Make predictions with forecasts (0-100% probability)\n- **List Questions**: View your predictions with filtering options\n- **Get Question Details**: Retrieve comprehensive information about specific questions\n- **Add Forecasts**: Update your predicted probabilities on existing questions\n- **Add Comments**: Add commentary to track your reasoning\n- **Resolve Questions**: Mark questions as resolved (YES/NO/AMBIGUOUS)\n- **Edit Questions**: Update question titles, resolve dates, and notes\n- **Delete Questions**: Remove questions you no longer need\n- **Count Forecasts**: Track your forecasting activity\n\n## Testing and Compatibility\n\nThis MCP server has been tested on Mac OS X 14.5 with:\n\n- Claude Code (CLI)\n- Claude Desktop\n- MCP Inspector\n\nAs far as I know, it doesn't violate any MCP protocol requirements but given that MCP is an evolving protocol, certain features or MCP clients may not be fully supported. If you encounter issues with other MCP implementations, please report them as GitHub issues.\n\n## Installation\n\n### Prerequisites\n\n- Python 3.13 or higher\n- [uv](https://github.com/astral-sh/uv) (recommended) or pip\n- A Fatebook account and API key\n\n### Getting your Fatebook API Key\n\n1. Sign in to [Fatebook](https://fatebook.io)\n2. Navigate to [API Setup](https://fatebook.io/api-setup)\n3. Generate and copy your API key\n\n### Option 1: Install from PyPI (Recommended)\n\nInstall the package directly from PyPI:\n\n```bash\npip install fatebook-mcp\n```\n\nOr using uv:\n\n```bash\nuv add fatebook-mcp\n```\n\n### Option 2: Install from Source\n\nFor development or the latest features:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/an1lam/fatebook-mcp.git\ncd fatebook-mcp\n```\n\n2. Install dependencies using uv:\n\n```bash\nuv sync\n```\n\n## Quick Start\n\n### Running Directly with uvx\n\nThe easiest way to test the server after installation is with uvx:\n\n```bash\n# Run directly from PyPI (no installation needed)\nuvx fatebook-mcp\n\n# Or run from local directory during development\nuvx --from . fatebook-mcp\n```\n\nThe server will start and wait for MCP client connections via stdio. Use Ctrl+C to stop it.\n\n## Usage with Claude Desktop and [Claude Code](https://www.anthropic.com/claude-code)\n\n### Claude Desktop\n\nAdd one of the following configurations to your Claude Desktop configuration file:\n\n#### macOS\nLocation: `~/Library/Application Support/Claude/claude_desktop_config.json`\n\n#### Windows\nLocation: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n#### Option 1: Using PyPI Package (Recommended)\n\n```json\n{\n  \"mcpServers\": {\n    \"fatebook\": {\n      \"command\": \"uvx\",\n      \"args\": [\"fatebook-mcp\"],\n      \"env\": {\n        \"FATEBOOK_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n**Note**: If Claude Desktop can't find `uvx`, use the full path instead:\n```json\n{\n  \"mcpServers\": {\n    \"fatebook\": {\n      \"command\": \"/Users/yourusername/.local/bin/uvx\",\n      \"args\": [\"fatebook-mcp\"],\n      \"env\": {\n        \"FATEBOOK_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\nFind your uvx path with: `which uvx`\n\n#### Option 2: Development/Source Installation\n\n```json\n{\n  \"mcpServers\": {\n    \"fatebook\": {\n      \"command\": \"uv\",\n      \"args\": [\n        \"--directory\",\n        \"/path/to/fatebook-mcp\",\n        \"run\",\n        \"python\",\n        \"-m\",\n        \"fatebook_mcp\"\n      ],\n      \"env\": {\n        \"FATEBOOK_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\nReplace `/path/to/fatebook-mcp` with the actual path to where you cloned this repository.\n\n### Claude Code (CLI)\n\nFor Claude Code, you can add this server in several ways:\n\n#### Option 1: Using PyPI Package (Recommended)\n\n```bash\n# Add the Fatebook MCP server using uvx\nclaude mcp add fatebook --env FATEBOOK_API_KEY=your-api-key-here -- uvx fatebook-mcp\n\n# Verify it was added successfully\nclaude mcp list\n```\n\n#### Option 2: Import from Claude Desktop\n\nIf you already have this configured in Claude Desktop, you can import those settings:\n\n```bash\nclaude mcp add-from-claude-desktop\n```\n\n#### Option 3: Project-specific configuration\n\nCreate a `.mcp.json` file in your project:\n\n**Using PyPI package:**\n```json\n{\n  \"mcpServers\": {\n    \"fatebook\": {\n      \"command\": \"uvx\",\n      \"args\": [\"fatebook-mcp\"],\n      \"env\": {\n        \"FATEBOOK_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\nIf `uvx` is not found, use the full path (find with `which uvx`):\n```json\n{\n  \"mcpServers\": {\n    \"fatebook\": {\n      \"command\": \"/Users/yourusername/.local/bin/uvx\",\n      \"args\": [\"fatebook-mcp\"],\n      \"env\": {\n        \"FATEBOOK_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n**Using development/source installation:**\n```json\n{\n  \"mcpServers\": {\n    \"fatebook\": {\n      \"command\": \"uv\",\n      \"args\": [\"--directory\", \"/path/to/fatebook-mcp\", \"run\", \"python\", \"-m\", \"fatebook_mcp\"],\n      \"env\": {\n        \"FATEBOOK_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\nReplace `/path/to/fatebook-mcp` with the actual path to where you cloned this repository.\n\n\n\n## Development & Testing\n### Additional setup\nBeyond the above setup that's needed even just to use the MCP server, running the MCP server as standalone and running its tests require fetching your API key and exporting it in your environment.\n\nYou can do this either by exporting it directly:\n\n```bash\nexport FATEBOOK_API_KEY=\"your-api-key-here\"\n```\n\nOr create a `.env` file:\n\n```\nFATEBOOK_API_KEY=your-api-key-here\n```\n\n### Running integration tests\n\nRun the integration tests to verify your setup:\n\n```bash\nuv run test_client.py\n```\n\nThis will test all available endpoints and confirm the server is working correctly.\n\n**Note**: These tests will only succeed if you have the right API key for the test user. If you're developing such that you need to run these tests, for now email me (the author).\n\n### Running the Server Locally\n\n**Using uvx (recommended):**\n```bash\nuvx --from . fatebook-mcp\n```\n\n**Using uv run with module:**\n```bash\nuv run python -m fatebook_mcp\n```\n\nThe server will start and wait for MCP client connections.\n\n## Testing and Compatibility\n\nThis MCP server has been tested with:\n\n- Claude Code (CLI)\n- Claude Desktop\n- MCP Inspector\n\nAs MCP is an evolving protocol, certain features or MCP clients may not be fully supported. If you encounter issues with other MCP implementations, please report them as GitHub issues.\n\n## Troubleshooting\n\n### uvx Command Not Found\n\nIf Claude Desktop shows \"command not found\" errors for `uvx`:\n\n1. **Find your uvx path**:\n   ```bash\n   which uvx\n   ```\n\n2. **Use the full path** in your configuration:\n   ```json\n   \"command\": \"/Users/yourusername/.local/bin/uvx\"\n   ```\n\n3. **Common uvx locations**:\n   - macOS: `/Users/yourusername/.local/bin/uvx`\n   - Linux: `/home/yourusername/.local/bin/uvx`\n\n### API Key Issues\n\n- Ensure your API key is valid and active\n- Check that the API key is properly set in environment or config\n- Try providing the API key directly in the request\n\n### Connection Issues\n\n- Verify the server path in your Claude Desktop config is correct\n- Check that Python 3.13+ is installed and accessible\n- Ensure uv dependencies are properly installed with `uv sync`\n\n### Question Format\n\n- Dates should be in YYYY-MM-DD format\n- Forecast values must be between 0.0 and 1.0\n- Question IDs are provided when creating questions\n\n## Claude Desktop Examples\n\n**Creating and tracking a prediction:**\n![example interaction](./example_claude_desktop_interaction_1.png)\n\n**Reviewing your predictions:**\n![example review interaction](./example_claude_desktop_interaction_2.png)\n\n\n## API Documentation\n\nFor more details about the Fatebook API, see:\n\n- [Fatebook API Setup](https://fatebook.io/api-setup)\n- [OpenAPI Specification](https://fatebook.io/api/openapi.json)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues or pull requests.\n\n## Support\n\nFor issues with:\n\n- **This MCP server**: Open an issue on GitHub\n- **Fatebook API**: Contact Fatebook support\n- **MCP/Claude Desktop**: See [MCP documentation](https://modelcontextprotocol.io)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Model Context Protocol server for Fatebook prediction tracking",
    "version": "0.1.0",
    "project_urls": {
        "Documentation": "https://github.com/an1lam/fatebook-mcp#readme",
        "Homepage": "https://github.com/an1lam/fatebook-mcp",
        "Issues": "https://github.com/an1lam/fatebook-mcp/issues",
        "Repository": "https://github.com/an1lam/fatebook-mcp"
    },
    "split_keywords": [
        "fatebook",
        " forecasting",
        " mcp",
        " model-context-protocol",
        " predictions"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9ebea8e4b4d75ded4fb9f307b98f69ed929d8fef6034b5d6fcf971f79f857e4d",
                "md5": "25540a95054ddfff6a3d69e2ca7f13c9",
                "sha256": "5d74cb8157137c7e87d97f19e507fef901536c9e9aeef742a4f3800a8bfbeb03"
            },
            "downloads": -1,
            "filename": "fatebook_mcp-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "25540a95054ddfff6a3d69e2ca7f13c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.13",
            "size": 10692,
            "upload_time": "2025-08-16T20:46:30",
            "upload_time_iso_8601": "2025-08-16T20:46:30.516300Z",
            "url": "https://files.pythonhosted.org/packages/9e/be/a8e4b4d75ded4fb9f307b98f69ed929d8fef6034b5d6fcf971f79f857e4d/fatebook_mcp-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6390d03a225c6130f94f4a3fa7cbdeb7b4dbabfe58f6164573bed6046301eff4",
                "md5": "2abb3dc1f5ebfe83b94bc316f64e5634",
                "sha256": "5a616c0cc1f9b1df071491197a3e1232b3b99014f0b9b7db5b03bf7e35889315"
            },
            "downloads": -1,
            "filename": "fatebook_mcp-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2abb3dc1f5ebfe83b94bc316f64e5634",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.13",
            "size": 240305,
            "upload_time": "2025-08-16T20:46:31",
            "upload_time_iso_8601": "2025-08-16T20:46:31.875803Z",
            "url": "https://files.pythonhosted.org/packages/63/90/d03a225c6130f94f4a3fa7cbdeb7b4dbabfe58f6164573bed6046301eff4/fatebook_mcp-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-16 20:46:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "an1lam",
    "github_project": "fatebook-mcp#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fatebook-mcp"
}
        
Elapsed time: 0.76467s