Metadata-Version: 2.4
Name: kobo-mcp
Version: 0.1.2
Summary: MCP server for KoboToolbox - deploy surveys and fetch submissions
Project-URL: Homepage, https://github.com/bbdaniels/kobo-mcp
Project-URL: Documentation, https://bbdaniels.github.io/kobo-mcp/
Project-URL: Repository, https://github.com/bbdaniels/kobo-mcp
Project-URL: Issues, https://github.com/bbdaniels/kobo-mcp/issues
Author-email: Benjamin Daniels <bbdaniels@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: anthropic,claude,kobo,kobotoolbox,mcp,survey,xlsform
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp[cli]>=1.0.0
Description-Content-Type: text/markdown

# Kobo MCP

[![PyPI version](https://badge.fury.io/py/kobo-mcp.svg)](https://pypi.org/project/kobo-mcp/)

An MCP server for KoboToolbox that enables Claude to deploy surveys and fetch submissions.

**[Documentation](https://bbdaniels.github.io/kobo-mcp/)**

## Features

- **list_forms** - List all KoboToolbox surveys
- **get_form** - Get detailed form information
- **get_submissions** - Fetch survey responses
- **deploy_form** - Upload and deploy XLSForm files
- **replace_form** - Update existing forms preserving submissions
- **export_data** - Export data as CSV or Excel

## Installation

```bash
pip install kobo-mcp
```

Or run directly with uvx (no install):

```bash
uvx kobo-mcp
```

## Configuration

### 1. Get your API token

Go to [KoboToolbox](https://kf.kobotoolbox.org) → Account Settings → Security → Display

### 2. Add to Claude

Add to `~/.claude.json`:

```json
{
  "mcpServers": {
    "kobotoolbox": {
      "type": "stdio",
      "command": "kobo-mcp",
      "env": {
        "KOBO_API_TOKEN": "your-token-here"
      }
    }
  }
}
```

Or with uvx:

```json
{
  "mcpServers": {
    "kobotoolbox": {
      "type": "stdio",
      "command": "uvx",
      "args": ["kobo-mcp"],
      "env": {
        "KOBO_API_TOKEN": "your-token-here"
      }
    }
  }
}
```

For EU server, add `"KOBO_SERVER": "https://eu.kobotoolbox.org"` to env.

## Development

```bash
git clone https://github.com/bbdaniels/kobo-mcp.git
cd kobo-mcp
pip install -e .
```

## License

MIT
