Skip to main content
ClaudeWave
ni-c avatar
ni-c

opengist-mcp

View on GitHub

MCP server for Opengist, the self-hosted pastebin powered by Git

MCP ServersOfficial Registry0 stars0 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/19/2026
Install in Claude Code / Claude Desktop
Method: NPX · opengist-mcp
Claude Code CLI
claude mcp add opengist-mcp -- npx -y opengist-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "opengist-mcp": {
      "command": "npx",
      "args": ["-y", "opengist-mcp"],
      "env": {
        "OPENGIST_URL": "<opengist_url>",
        "OPENGIST_TOKEN": "<opengist_token>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
OPENGIST_URLOPENGIST_TOKEN
Use cases

MCP Servers overview

# opengist-mcp

[![CI](https://github.com/ni-c/opengist-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ni-c/opengist-mcp/actions/workflows/ci.yml)
[![npm version](https://img.shields.io/npm/v/opengist-mcp.svg)](https://www.npmjs.com/package/opengist-mcp)
[![npm downloads](https://img.shields.io/npm/dm/opengist-mcp.svg)](https://www.npmjs.com/package/opengist-mcp)
[![node](https://img.shields.io/node/v/opengist-mcp.svg)](https://www.npmjs.com/package/opengist-mcp)
[![container](https://img.shields.io/badge/ghcr.io-ni--c%2Fopengist--mcp-2496ed?logo=docker&logoColor=white)](https://github.com/ni-c/opengist-mcp/pkgs/container/opengist-mcp)
[![docs](https://img.shields.io/badge/docs-opengist--mcp.ni--c.de-4f46e5)](https://opengist-mcp.ni-c.de)
[![license](https://img.shields.io/npm/l/opengist-mcp.svg)](LICENSE)

A [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for [Opengist](https://github.com/thomiceli/opengist), the self-hosted pastebin powered by Git.

Lets MCP clients like Claude Code, Claude Desktop or Codex read, search, create, update and delete gists on your own Opengist instance: file contents and revisions, commit history, forks and likes, plus your user account.

📖 **[Full documentation at opengist-mcp.ni-c.de](https://opengist-mcp.ni-c.de)**

<!-- <picture> is resolved against the colour scheme of the page showing it, so GitHub
     picks the variant that matches its own theme toggle. npm strips <picture> and
     <source> when it sanitises the README and keeps the <img>, which is why that
     fallback brings its own dark card instead of relying on a media query. -->
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://opengist-mcp.ni-c.de/architecture-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="https://opengist-mcp.ni-c.de/architecture-light.svg">
  <img src="https://opengist-mcp.ni-c.de/architecture.svg" alt="An MCP client speaks stdio to opengist-mcp, which calls the Opengist REST API over HTTPS; the token stays in the server process and every response is shaped before it reaches the model" width="800">
</picture>

> **Note:** this server talks to the Opengist REST API under `/api`, which is available in recent Opengist releases and enabled by default (`api.enabled`). A running instance serves its own OpenAPI spec at `GET /api/openapi.yaml` — compare it against your version if a tool behaves unexpectedly.

## Requirements

- Node.js 22 or newer
- An Opengist instance with the REST API enabled
- An Opengist Personal Access Token (Settings → Access Tokens). Scopes:
  - `gist:read` — read gists, including your private and unlisted ones
  - `gist:write` — create, update, delete and fork gists
  - `user:read` — read your own account
  - `user:write` — only needed for `set_gist_like`

  A token **without** `gist:read` still works, but the API then silently returns only public gists instead of failing.

## Configuration

| Variable                | Required | Description                                                                                             |
| ----------------------- | -------- | ------------------------------------------------------------------------------------------------------- |
| `OPENGIST_URL`          | yes      | Base URL of your instance, e.g. `https://gist.example.com`. A trailing `/api` is accepted and stripped. |
| `OPENGIST_TOKEN`        | yes      | Personal Access Token, starts with `og_`                                                                |
| `OPENGIST_READ_ONLY`    | no       | `true` registers only the read tools; the write tools do not exist at all in that session               |
| `OPENGIST_INSECURE_TLS` | no       | `true` accepts self-signed certificates, scoped to the Opengist connection (never process-wide)         |

> The token is read once at startup and then removed from `process.env`, so it is not visible to child processes. Use `https://` for anything but a loopback address — over plain http the token and every gist travel in cleartext.
>
> If your instance's `external-url` is not configured, the URLs Opengist reports (and this server passes through) point at `localhost`. Set `external-url` / `OG_EXTERNAL_URL` on the instance so links are usable.

## Installation

### Claude Code

```sh
claude mcp add opengist -s user \
  -e OPENGIST_URL=https://gist.example.com \
  -e OPENGIST_TOKEN=og_your_token \
  -- npx -y opengist-mcp
```

### Claude Desktop

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "opengist": {
      "command": "npx",
      "args": ["-y", "opengist-mcp"],
      "env": {
        "OPENGIST_URL": "https://gist.example.com",
        "OPENGIST_TOKEN": "og_your_token"
      }
    }
  }
}
```

### Codex

`~/.codex/config.toml`:

```toml
[mcp_servers.opengist]
command = "npx"
args = ["-y", "opengist-mcp"]
env = { OPENGIST_URL = "https://gist.example.com", OPENGIST_TOKEN = "og_your_token" }
```

### Docker

```sh
docker run --rm -i \
  -e OPENGIST_URL=https://gist.example.com \
  -e OPENGIST_TOKEN=og_your_token \
  ghcr.io/ni-c/opengist-mcp:latest
```

`-i` is required — the transport is stdio. Do not add `-t`; a TTY corrupts the
protocol stream.

### From source

```sh
git clone https://github.com/ni-c/opengist-mcp.git
cd opengist-mcp
npm install
npm run build
```

## Tools

### Reading

| Tool                | Description                                                                                                 |
| ------------------- | ----------------------------------------------------------------------------------------------------------- |
| `list_gists`        | List gists: your own, another user's, all public ones, or liked/forked ones (`scope` + optional `username`) |
| `search_gists`      | Find gists by title, description, topics or owner — a bounded client-side scan (Opengist has no search API) |
| `get_gist`          | Get one gist with its file contents, optionally at a revision; commits and forks on request                 |
| `get_gist_file`     | Get the raw content of a single file, at a revision and from an offset — for large or truncated files       |
| `list_gist_commits` | Commit history of a gist, newest first                                                                      |
| `list_gist_forks`   | Forks of a gist                                                                                             |
| `get_user`          | Your own account, or another user by `username` or `userId`                                                 |
| `check_gist_like`   | Whether you liked a gist; distinguishes "not liked" from "not visible to you"                               |

### Writing

| Tool                | Description                                                                                          |
| ------------------- | ---------------------------------------------------------------------------------------------------- |
| `create_gist`       | Create a gist from a list of files. `visibility` is required; public/unlisted needs a confirmation   |
| `update_gist`       | Change title/description/visibility and write or rename files. Cannot delete files                   |
| `delete_gist_files` | Delete files from a gist — needs a confirmation token bound to exactly those filenames               |
| `delete_gist`       | Delete a gist permanently — needs a confirmation token                                               |
| `fork_gist`         | Fork a gist; reports whether a new fork was created or one already existed                           |
| `set_gist_like`     | Like or unlike a gist idempotently (reads the current state first, so a repeat call is not a toggle) |

### Safety

- **Irreversible actions need a server-generated token.** `delete_gist`, `delete_gist_files` and widening a gist's visibility refuse the first call and return a random, single-use token that expires after five minutes. A plain `confirm: true` flag could be set by the model on its own, or be talked into it by text inside a gist; a token that only ever appeared in a previous tool result cannot. The token for `delete_gist_files` is bound to the exact set of filenames, so a confirmation for one file cannot be replayed to delete another.
- **Publishing content needs the same token.** Creating a `public` or `unlisted` gist, and writing files into a gist that already is one, are disclosure events: whatever the model has in its context becomes readable by others and cannot be withdrawn from anyone who already saw it. Both refuse the first call. The token is bound to the exact content, so a confirmation for one file cannot be replayed with a second one attached. A call that makes the gist private in the same breath is not a disclosure and needs no token.
- **Confirmations are checked after validation.** A call that could not succeed anyway is reported as the input error it is, rather than first costing a confirmation round-trip.
- **Confirmation prompts never quote gist text.** Titles, descriptions, topics and filenames are user-supplied and could carry instructions aimed at manufacturing a confirmation, so refusals show only server-side metadata (visibility, file count, dates).
- **`update_gist` cannot delete a file.** The Opengist API deletes a file when its entry is `null` _or_ carries neither `content` nor `filename` — exactly the shape a sloppily built object has. This server therefore never exposes the raw file map; it accepts explicit `write`/`rename` operations and asserts before sending that no entry could be read as a deletion. Files you do not mention are left untouched.
- **Typos cannot silently duplicate a file.** A write to a filename that does not exist is refused unless `allowCreate: true` is passed, and the refusal names a case-insensitive near match (`readme.md` vs `README.md`).
- **Gist content is untrusted input.** Every response that carries file content is tagged with a note saying so. Treat gist text as data
claudegistmcpmcp-servermodel-context-protocolopengistpastebinself-hostedsnippetstypescript

What people ask about opengist-mcp

What is ni-c/opengist-mcp?

+

ni-c/opengist-mcp is mcp servers for the Claude AI ecosystem. MCP server for Opengist, the self-hosted pastebin powered by Git It has 0 GitHub stars and its last recorded update is dated 2026-08-18.

How do I install opengist-mcp?

+

You can install opengist-mcp by cloning the repository (https://github.com/ni-c/opengist-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is ni-c/opengist-mcp safe to use?

+

Our security agent has analyzed ni-c/opengist-mcp and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains ni-c/opengist-mcp?

+

ni-c/opengist-mcp is maintained by ni-c. The last recorded GitHub activity is dated 2026-08-18, with 0 open issues.

Are there alternatives to opengist-mcp?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy opengist-mcp to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: ni-c/opengist-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ni-c-opengist-mcp)](https://claudewave.com/repo/ni-c-opengist-mcp)
<a href="https://claudewave.com/repo/ni-c-opengist-mcp"><img src="https://claudewave.com/api/badge/ni-c-opengist-mcp" alt="Featured on ClaudeWave: ni-c/opengist-mcp" width="320" height="64" /></a>

More MCP Servers

opengist-mcp alternatives