# Sofya MCP server

> Enables AI agents to perform web searches, fetch content as markdown, extract specific data, and conduct deep research with cited reports.

- Repository: https://github.com/sofya-co/sofya-mcp
- Page: https://hostedmcp.org/servers/sofya-co/sofya-mcp
- Transport: remote
- Stars: 2
- License: MIT
- Latest version: 1.32.0

## Install

### Claude Code

```sh
claude mcp add --transport http sofya-mcp https://mcp.sofya.co/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "sofya-mcp": {
      "url": "https://mcp.sofya.co/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "sofya-mcp": {
      "type": "http",
      "url": "https://mcp.sofya.co/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"sofya-mcp","type":"http","url":"https://mcp.sofya.co/mcp"}'
```

### Codex

```sh
codex mcp add sofya-mcp --url https://mcp.sofya.co/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.sofya-mcp]
url = "https://mcp.sofya.co/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http sofya-mcp https://mcp.sofya.co/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "sofya-mcp": {
      "url": "https://mcp.sofya.co/mcp",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SOFYA_API_KEY` | no | no |  |

## Tools (6)

- `search`
- `fetch`
- `extract`
- `research`
- `get_balance`
- `buy_credits`

## FAQ

### What file formats can the fetch tool handle?

The fetch tool can process URLs as clean markdown and also handles various document formats including PDF, DOCX, XLSX, PPTX, and EPUB.

### Are there any free options for using Sofya?

Eligible GitHub accounts that are a year or older receive free monthly credits.

### How long does the hosted server keep my tool arguments?

The hosted server keeps tool arguments in server logs for up to 30 days.
