# Build with AI

Let your AI assistant read the Sweego documentation while you code. Ask it how to send a transactional email, configure a webhook or handle bounces, and it answers from the current documentation instead of guessing.

:::info[Documentation only]
The Sweego MCP server gives read-only access to this documentation. It does not connect to your Sweego account, needs no [API key](/docs/auth/api_keys), and cannot send emails or SMS on your behalf.
:::

## Connect the MCP server

The server is available at:

```
https://learn.sweego.io/mcp
```

Follow the instructions for your client:

**Claude Code:**

Run this command in your terminal:

```bash
claude mcp add --transport http sweego-docs https://learn.sweego.io/mcp
```


---

**Claude Desktop / claude.ai:**

1. Open **Settings > Connectors**.
2. Click **Add custom connector**.
3. Name it `Sweego Docs` and paste the server URL above.

---

**Cursor:**

Add this to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):

```json
{
  "mcpServers": {
    "sweego-docs": {
      "url": "https://learn.sweego.io/mcp"
    }
  }
}
```


---

**VS Code:**

Add this to `.vscode/mcp.json` in your project:

```json
{
  "servers": {
    "sweego-docs": {
      "type": "http",
      "url": "https://learn.sweego.io/mcp"
    }
  }
}
```


---

**Mistral Vibe:**

Add this to `~/.vibe/config.toml` (user-level) or `.vibe/config.toml` (project-level):

```toml
[[mcp_servers]]
name = "sweego_docs"
transport = "http"
url = "https://learn.sweego.io/mcp"
```

The tools are then exposed as `sweego_docs_<tool_name>`. Run `/mcp` in Vibe to check that the server is connected.

---

**Windsurf:**

Add this to `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "sweego-docs": {
      "serverUrl": "https://learn.sweego.io/mcp"
    }
  }
}
```


## Try it

Once connected, ask your assistant things like:

- *"Using the Sweego docs, write a Node.js function that sends a transactional email with a template and variables."*
- *"How do I receive bounce and complaint events from Sweego? Show me a webhook handler in Python."*
- *"What DNS records do I need to authenticate my sending domain on Sweego?"*
- *"Send an SMS with Sweego from a PHP app. Which endpoint and parameters should I use?"*

## Give the docs to any LLM

No MCP support in your tool? Use one of these instead.

| Resource | What it contains | Best for |
|---|---|---|
| [`/llms.txt`](https://learn.sweego.io/llms.txt) | An index of every page with a short description | Agents that browse the documentation on their own |
| [`/llms-full.txt`](https://learn.sweego.io/llms-full.txt) | The whole documentation in one Markdown file | Pasting into a chat or a project's knowledge base |
| Any page + `.md` | The raw Markdown of that page | Sharing one precise page with an assistant |

Every page also has a **Copy page** button next to its title, so you can paste its content straight into your assistant.

## FAQ

### Is my data sent to Sweego?

The MCP server only receives the documentation searches your assistant makes. It never receives your API keys, your contacts or your emails.

### Does the assistant always have up-to-date information?

Yes. The MCP server, `llms.txt` and `.md` files are rebuilt every time the documentation is published.

### My client doesn't connect, what should I check?

Make sure your client supports remote MCP servers over HTTP, then restart it after editing the configuration. If it still fails, contact [our support](mailto:support@sweego.io) with the name and version of your client.

## Additional Resources

- [Model Context Protocol specification](https://modelcontextprotocol.io/)
- [API keys](/docs/auth/api_keys)
- [How to send an email by API](/docs/sending/how_to_send_email_by_api)
- [Webhooks setup](/docs/webhooks/setup)
