https://lul-forge.com/en/mcp/

LULFORGE / MCP

# Let your agent
make the meme.

Describe the situation. Your agent finds a template, adds captions and returns the image.

[Get a key](https://lul-forge.com/en/account/) [How to connect](https://lul-forge.com/en/mcp/#connect)

**30** memes **7** days Free. No card.

EXAMPLE 01 / meme\_render

Make a meme about a quick five-minute meeting that turned into an hour of arguing over a file name.

![A meme about a five-minute meeting and an hour of arguing over a file name](https://lul-forge.com/media/mcp-guide/v2/en/example.webp)

Your captions, image layers and crop. Download as PNG or JPEG.

SETUP

## Connect your agent

1. ### Create a key

Verify your email and create an MCP key in your account.

[Open your account](https://lul-forge.com/en/account/)
2. ### Add the server to your client

URL `https://lul-forge.com/mcp`

Authorization `Bearer YOUR_KEY`

#### Quick setup in Codex

Add this block to ~/.codex/config.toml and replace YOUR\_KEY with the key from your account.

~/.codex/config.toml

```
[mcp_servers.lulforge]
url = "https://lul-forge.com/mcp"

[mcp_servers.lulforge.http_headers]
Authorization = "Bearer YOUR_KEY"
```

Keep the file private. Restart Codex and enter /mcp to check the connection.

### Other clients and environment variable setup

#### Choose your client

Set your key in a macOS or Linux terminal, then launch your client from that terminal. Replace YOUR\_KEY with your account key.

Environment variable

```
export LULFORGE_API_KEY='YOUR_KEY'
```

Repeat export in a new terminal. Merge settings into your existing configuration rather than replacing it. The snippets below assume your client is already installed.

#### [OpenCode](https://opencode.ai/)

A terminal agent with JSON-based MCP configuration.

[MCP documentation](https://opencode.ai/docs/mcp-servers/) 

### Set up OpenCode

Add lulforge to the mcp section. If the section does not exist, use this block.

~/.config/opencode/opencode.json

```
{
  "mcp": {
    "lulforge": {
      "type": "remote",
      "url": "https://lul-forge.com/mcp",
      "enabled": true,
      "oauth": false,
      "headers": {
        "Authorization": "Bearer {env:LULFORGE_API_KEY}"
      }
    }
  }
}
```

Check the connection:

Check OpenCode

```
opencode mcp list
```

Restart OpenCode after saving. OAuth is disabled for this server because it uses your key.

#### [Claude Code](https://code.claude.com/docs/en/overview)

Anthropic’s terminal agent. Add the server with a CLI command.

[MCP documentation](https://code.claude.com/docs/en/mcp) 

### Set up Claude Code

This adds the server for your user. Single quotes preserve the environment reference in the configuration.

Terminal

```
claude mcp add-json --scope user lulforge \
  '{"type":"http","url":"https://lul-forge.com/mcp","headers":{"Authorization":"Bearer ${LULFORGE_API_KEY}"}}'
```

Check the connection:

Check Claude Code

```
claude mcp get lulforge
```

Restart Claude Code and check the server with /mcp.

#### [Codex CLI](https://learn.chatgpt.com/docs/codex/cli)

OpenAI’s terminal agent with Streamable HTTP connections.

[MCP documentation](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) 

### Set up Codex CLI

This saves the server in ~/.codex/config.toml and reads the key from your environment.

Terminal

```
codex mcp add lulforge \
  --url https://lul-forge.com/mcp \
  --bearer-token-env-var LULFORGE_API_KEY
```

Check the connection:

Check Codex CLI

```
codex mcp get lulforge
```

Start a new Codex CLI session. Use /mcp inside it to see connected servers.

#### [Capstan CLI](https://github.com/theStrangeAdventurer/capstan)

A terminal agent built in C with Lua configuration.

[MCP documentation](https://github.com/theStrangeAdventurer/capstan/blob/main/specs/mcp-client.md) 

### Set up Capstan CLI

Merge this mcp block into your existing return { ... }. If mcp already exists, enable it and append only the lulforge entry to servers.

~/.config/capstan/config.lua

```
mcp = {
  enabled = true,
  servers = {
    {
      name = "lulforge",
      enabled = true,
      transport = "http",
      url = "https://lul-forge.com/mcp",
      headers = {
        Authorization = "Bearer " ..
          assert(os.getenv("LULFORGE_API_KEY"),
            "Set LULFORGE_API_KEY"),
      },
      timeout = 60000,
    },
  },
},
```

Check the connection:

Check Capstan CLI

```
capstan
```

Restart Capstan. Inside the client, /mcp shows status and /mcp tools lulforge lists tools.
3. ### Ask for a meme

Describe the situation and caption language. Ask your agent for the image and a download link.

Make a meme about a quick five-minute meeting that turned into an hour of arguing over a file name.

## A few details

### What can my agent do?

Find templates by name or situation, generate captions, add text and images, resize and rotate layers, crop the background and render PNG/JPEG. Add captions to animated templates and download GIF or MP4. Request Russian or English captions.

### How does the free trial work?

7 days or 30 successful generations, whichever comes first. The clock starts with your first generation. Failed jobs do not use credits. Template search stays available afterwards. Paid plans are not available yet, and there are no automatic charges.

### Where are images stored?

MCP uploads and results are private and removed after one hour. Download links last up to 15 minutes. Save your finished meme locally. You can revoke your key in your account.

### Can I connect with just a URL?

Not yet. You need a client that can send a Bearer key in the Authorization header. OAuth connections are not supported yet.
