Pastebin MCP Server
Provides tools for interacting with the Pastebin API, enabling users to log in, create public/unlisted/private pastes, list and delete their pastes, and fetch trending pastes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pastebin MCP Server create a public paste with my build logs and give me the link"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Exchange username/password for a Pastebin User Key |
| Create a paste (public / unlisted / private) |
| List your pastes (requires a User Key) |
| Delete one of your pastes |
| Fetch the current trending pastes |
| Shut the server down |
Related MCP server: Spotify MCP
Configuration
Variable | Required | Description |
| yes | Your Pastebin developer API key |
| for private/list/delete | User Key returned by |
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-pastebinPin a version:
uvx mcp-pastebin@0.1.0From a local checkout (development):
PASTEBIN_DEV_KEY=your_key uv run mcp-pastebinMCP 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 . # lintuv.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.0The 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 |
|
Owner |
|
Repository name |
|
Workflow name |
|
Environment name |
|
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-... # TestPyPILicense
MIT
Available Tools
6 toolscreate_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
get_trending_pastesGet Trending PastesB
Get the top trending pastes on Pastebin.
Inputs: api_dev_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
Scored across 6 tools
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.
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.
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.
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
Related MCP Connectors
Publish, update, and organize HTML and Markdown pastes on PasteHTML as the authorized user.
Create and share text, code snippets, diffs, and logs as Pastes.io links. Read pastes by link, search your own pastes, check account limits, and delete pastes you own. Connect with OAuth or an API key. MCP-created pastes are unlisted: anyone with the link can read them unless password-protected. Plan limits and expiration rules apply.
Deploy HTML and Markdown as live URLs. Create, search, update, and manage pastes from any AI agent.
Related MCP Servers
FlicenseNot gradedqualityFmaintenanceEnables 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-- AlicenseAqualityDmaintenanceEnables searching and managing Spotify playlists, tracks, and user information through the Spotify Web API.10MIT
- FlicenseNot gradedqualityCmaintenanceEnables agents to publish and manage HTML/Markdown pastes, folders, and paste configuration via Model Context Protocol, with OAuth-based authentication and paste analytics.11-
- AlicenseNot gradedqualityCmaintenanceEnables a coding agent to create, list, and read ShareBit pastes over the Model Context Protocol, with no shell, filesystem, or credential-admin access.MIT