npm package: @jasni/mcp-server
Description: MCP Server for Jasni Email - interact with your Jasni email accounts from Cursor, Claude Desktop, and other MCP clients
Author: Jasni
Latest version: 0.1.1

# Jasni MCP Server

MCP server to manage your Jasni email accounts from Cursor, Claude Desktop, or any MCP-compatible client.

## Setup

1. Get your API key from the Jasni dashboard (**Developers > API Keys**)

2. Add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "jasni": {
      "command": "npx",
      "args": ["-y", "@jasni/mcp-server"],
      "env": {
        "JASNI_API_KEY": "jsk_your_api_key"
      }
    }
  }
}
```

3. Restart Cursor

## Available Tools

### Accounts

| Tool | Description |
|------|-------------|
| `list_accounts` | List all email accounts |
| `create_account` | Create a new email account |
| `update_account` | Update account display name |
| `delete_account` | Delete an email account |

### Emails

| Tool | Description |
|------|-------------|
| `list_emails` | List emails from a folder (supports label filtering) |
| `get_email` | Get full email content by UID |
| `send_email` | Send a new email |
| `reply_email` | Reply to an email |
| `forward_email` | Forward an email |
| `delete_email` | Delete an email |
| `mark_email` | Mark as read/unread |
| `get_attachments` | Get all attachments from an email |
| `get_attachment` | Get a specific attachment by filename or index |
| `get_raw_email` | Get raw email in RFC 822 format |

### Threads

| Tool | Description |
|------|-------------|
| `list_threads` | List email threads/conversations |
| `get_thread` | Get all emails in a thread |

### Drafts

| Tool | Description |
|------|-------------|
| `list_drafts` | List all draft emails |
| `get_draft` | Get a draft by UID |
| `save_draft` | Save a new draft |
| `update_draft` | Update an existing draft |
| `delete_draft` | Delete a draft |
| `send_draft` | Send a draft email |

### Labels

| Tool | Description |
|------|-------------|
| `list_labels` | List all labels |
| `create_label` | Create a new label |
| `delete_label` | Delete a label |
| `get_email_labels` | Get labels assigned to an email |
| `add_email_labels` | Add labels to an email |
| `remove_email_labels` | Remove labels from an email |

### Webhooks

| Tool | Description |
|------|-------------|
| `list_webhooks` | List all webhooks |
| `get_webhook` | Get a webhook by ID |
| `create_webhook` | Create a new webhook |
| `update_webhook` | Update a webhook |
| `delete_webhook` | Delete a webhook |

## Examples

- "List my email accounts"
- "Send an email to john@example.com about the meeting"
- "Show me my latest emails"
- "Reply to the last email saying thanks"
- "Forward that email to my colleague"
- "Create a label called 'Important'"
- "Label the last 3 emails as 'Work'"
- "Show me emails labeled 'Important'"
- "List my email threads"
- "Show me the conversation with John"
- "Save this as a draft"
- "List my drafts"
- "Send my draft to john@example.com"
- "Download the attachment from the last email"
- "Create a webhook for new emails"

## Environment Variables

| Variable | Required | Default |
|----------|----------|---------|
| `JASNI_API_KEY` | Yes | - |
| `JASNI_API_URL` | No | `https://api.jasni.ai` |