Skip to main content
Glama
Pastebin MCP Server
by neopunisher

Pastebin MCP Server

An MCP server for the Pastebin API, built with FastMCP. Managed with uv and distributed on PyPI so it can be run directly with uvx — no install step, no virtualenv to manage.

Tools

Tool

Description

login

Exchange username/password for a Pastebin User Key

create_paste

Create a paste (public / unlisted / private)

list_user_pastes

List your pastes (requires a User Key)

delete_paste

Delete one of your pastes

get_trending_pastes

Fetch the current trending pastes

stop

Shut the server down

Related MCP server: Spotify MCP

Configuration

Variable

Required

Description

PASTEBIN_DEV_KEY

yes

Your Pastebin developer API key

PASTEBIN_USER_KEY

for private/list/delete

User Key returned by login

Both can also be passed per-call as api_dev_key / api_user_key arguments.

Run it

Once published, no installation is needed:

PASTEBIN_DEV_KEY=your_key uvx mcp-pastebin

Pin a version:

uvx mcp-pastebin@0.1.0

From a local checkout (development):

PASTEBIN_DEV_KEY=your_key uv run mcp-pastebin

MCP client configuration

Add to your client's MCP config (.mcp.json, claude_desktop_config.json, etc.):

{
  "mcpServers": {
    "pastebin": {
      "command": "uvx",
      "args": ["mcp-pastebin"],
      "env": {
        "PASTEBIN_DEV_KEY": "your_key"
      }
    }
  }
}

While developing, point uvx at the working tree instead:

{
  "mcpServers": {
    "pastebin": {
      "command": "uvx",
      "args": ["--from", "/absolute/path/to/pastebin-mcp", "mcp-pastebin"],
      "env": { "PASTEBIN_DEV_KEY": "your_key" }
    }
  }
}

Development

uv sync                 # create .venv and install deps from uv.lock
uv run mcp-pastebin     # run the server from source
uv lock --upgrade       # refresh the lockfile
uv run ruff check .     # lint

uv.lock is committed so development environments are reproducible; it does not constrain consumers installing from PyPI.

Every push and pull request runs .github/workflows/ci.yml: uv sync --locked, ruff check ., then uv build and a stdio smoke test that starts the built wheel's console script and checks it answers an MCP initialize request - on Python 3.10, 3.11, 3.12 and 3.13.

Releasing

Releases are automated: pushing a tag that starts with v runs .github/workflows/release.yml, which builds the sdist and wheel with uv build, smoke-tests the built wheel, and uploads it to PyPI with uv publish. Authentication is PyPI trusted publishing over OIDC, so there is no PyPI token stored in this repository.

To cut a release:

# 1. bump the version in both places and commit
#      pyproject.toml            version = "0.2.0"
#      mcp_pastebin/__init__.py  __version__ = "0.2.0"
git commit -am "Release 0.2.0"

# 2. tag and push - the tag is what triggers the upload
git tag v0.2.0
git push origin main v0.2.0

The tag and the version in pyproject.toml must agree. PyPI never accepts a re-upload of an existing version, so a release that fails after the upload step needs a new version number rather than a moved tag.

One-time PyPI setup

Before the first release, register a trusted publisher on PyPI. The project does not exist on PyPI yet, so add it as a pending publisher at https://pypi.org/manage/account/publishing/:

Field

Value

PyPI Project Name

mcp-pastebin

Owner

neopunisher

Repository name

py-pastebin-mcp

Workflow name

release.yml

Environment name

pypi

Every field is checked on upload, including the workflow filename and the environment: pypi declared in release.yml - if you rename either, update the publisher to match. GitHub creates the pypi environment on the first run; to require a manual approval before each upload, add yourself as a required reviewer to it under Settings -> Environments -> pypi.

After the first successful upload the pending publisher becomes an ordinary publisher on the project, and no further setup is needed.

Publishing by hand

Only needed to bypass the workflow (or to rehearse against TestPyPI):

uv build                                   # -> dist/*.whl and dist/*.tar.gz
python scripts/smoke_test.py               # start the built wheel, speak MCP to it
uv publish --token pypi-...                # upload to PyPI
uv publish --publish-url https://test.pypi.org/legacy/ --token pypi-...   # TestPyPI

License

MIT

Available Tools

6 tools
create_pasteCreate PasteC

Create a new paste on Pastebin.

Inputs: code (required), name, format, private, +3 more. Returns: result

delete_pasteDelete PasteA

Delete a paste (requires login/api_user_key).

Inputs: paste_key (required), api_dev_key, api_user_key. Returns: result

list_user_pastesList User PastesB

List your pastes (requires login).

Inputs: limit, api_dev_key, api_user_key. Returns: result

loginLoginA

Login to Pastebin to get a User API Key for private pastes and listing.

Inputs: password (required), user_name (required), api_dev_key. Returns: result

stopStopA

Stop the MCP server. This will terminate the process.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: authentication (login), discovery (get_trending_pastes), creation (create_paste), listing (list_user_pastes), deletion (delete_paste), and lifecycle (stop). There is no meaningful overlap between any two tools, so an agent can easily select the right one.

    Naming Consistency4/5

    Most tools follow a clean verb_noun pattern (get_trending_pastes, create_paste, list_user_pastes, delete_paste), which is highly predictable. However, login and stop are bare verbs that break the pattern, a minor deviation.

    Tool Count5/5

    Six tools is well within the sweet spot and each maps to a real operation in the Pastebin domain (auth, discovery, CRUD-ish paste management, shutdown). No tool feels redundant or padded.

    Completeness3/5

    Core lifecycle is present (login, create, list, delete, trending), but there is no tool to retrieve/view a specific paste by key or URL, which is a fundamental read operation for a Pastebin server. This notable gap will force agents to work around the missing read capability.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      F
      maintenance
      Enables interaction with a read-later and link sharing social feed app, allowing users to manage links, bookmarks, and share through web, API, and MCP.
      87
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables searching and managing Spotify playlists, tracks, and user information through the Spotify Web API.
      10
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables a coding agent to create, list, and read ShareBit pastes over the Model Context Protocol, with no shell, filesystem, or credential-admin access.
      MIT