Skip to main content

Postbye 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.1

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.1
File Size Uploaded Provenance Actions
langchain_postbye-1.0.1.tar.gz 5.5 kB Without provenance Details for langchain_postbye-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 12.2 kB

Release files / langchain_postbye-1.0.1.tar.gz

Download URL langchain_postbye-1.0.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7af3d5b90edc2b2f214793180c427940c35a4926207956ebe0ec2002794cf79d
BLAKE2b-256 checksum
How to use checksums
54a5c91a17ecf824f3d05a765d46def289639ca2a579d67d960dd5a67447444a
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.1-py3-none-any.whl

Download URL langchain_postbye-1.0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c28fc52da8d2bef711faf75bd47aa959e3d1a3b1c3c4011d325edbade359f6d6
BLAKE2b-256 checksum
How to use checksums
ef37c505d374296ce215d5dc382a72ae6b7643edc8f1ad13eb92f53bd15a80b6
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.1

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.1 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