Skip to main content

Postbye (postbye.com) cancels subscriptions for you by mailing a formal cancellation letter, tracked until it is delivered.

langchain-postbye

LangChain tools for Postbye's public, read-only MCP server at https://postbye.com/mcp (Streamable HTTP, no API key, no account). Give your agent the ability to find a company's cancellation rules, mailing address and a ready-to-send cancellation letter.

The package calls the server with plain JSON-RPC over HTTP, so it needs no MCP client library. Tools support both sync and async use.

Install

pip install langchain-postbye

Quickstart

from langchain_postbye import PostbyeToolkit

tools = PostbyeToolkit().get_tools()   # or: from langchain_postbye import get_tools

search = next(t for t in tools if t.name == "postbye_search_companies")
print(search.invoke({"query": "planet fitness", "limit": 3}))

With a LangGraph agent

from langchain_postbye import get_tools
from langgraph.prebuilt import create_react_agent

agent = create_react_agent("anthropic:claude-sonnet-4-5", get_tools())
result = agent.invoke(
    {"messages": [("user", "How do I cancel my Planet Fitness membership? Draft the letter.")]}
)
print(result["messages"][-1].content)

Tools

LangChain tool MCP tool What it does
postbye_search_companies search_companies Find a company by name; returns its slug, category and how it takes cancellations.
postbye_get_cancellation_guide get_cancellation_guide Notice period, traps to check, billing-partner notes, sources and mailing address(es) for one company.
postbye_get_cancellation_letter get_cancellation_letter A plain-text cancellation letter plus where to send it. Optional customer_name and account_number. Nothing is stored.
postbye_list_categories list_categories Guide categories with the number of guides in each.

Options

PostbyeToolkit(url="https://postbye.com/mcp", timeout=30.0).get_tools()

Tests

pip install -e ".[test]"
pytest   # live smoke tests: tools/list must return the 4 tools

License

MIT. Author: Postbye Team.

Metadata

Release files for langchain-postbye 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-postbye 1.0.0
File Size Uploaded Provenance Actions
langchain_postbye-1.0.0.tar.gz 5.4 kB Without provenance Details for langchain_postbye-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-postbye 1.0.0
File Interpreter ABI Platform Actions
langchain_postbye-1.0.0-py3-none-any.whl Python 3 none any Details for langchain_postbye-1.0.0-py3-none-any.whl

Total release size: 12.1 kB

Release files / langchain_postbye-1.0.0.tar.gz

Download URL langchain_postbye-1.0.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e932d3970a9d3ba04c2b9e80054434e6eed648d238cc7a31bffd82459802cb84
BLAKE2b-256 checksum
How to use checksums
8e8e9f1dbb2814ce34e5b9190e066d65d86241374acee236f64620e699b16e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / langchain_postbye-1.0.0-py3-none-any.whl

Download URL langchain_postbye-1.0.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d9d503046040d262f0e2ac634073a5172c6bb0e6f2dfbf49e8ebda02854fe3e
BLAKE2b-256 checksum
How to use checksums
6d5555ad0a44cde8350ecb781e76864265e0baec109b2fa6c3af90b033bebc1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Security for langchain-postbye 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page