# Mastodon.py

> Updated 2026-09-03 · type: tool · category: social-community · status: active · rev 1

~957 stars; complements toot; OAuth2 app tokens against the documented, open Mastodon REST API (open protocol / ActivityPub). No ToS/ban risk — self-hostable,…

- Open source: yes (MIT)
- Self-hostable: yes
- Pricing model: free
- Best for: Python developers building applications that interact with Mastodon servers via the Mastodon API.
- Last verified: 2026-09-04

- **Canonical:** https://gtmstacker.com/registry/tool/mastodonpy/
- **Source:** [github · github.com/halcy](https://github.com/halcy/Mastodon.py)
- **Tags:** social-community, social-microblogging-communities
- **Repository:** https://github.com/halcy/Mastodon.py

## Is Mastodon.py open source?

Yes — MIT-licensed.

## How much does Mastodon.py cost?

It is free to use.

## Can I self-host Mastodon.py?

Yes — it can be self-hosted.


---

~957 stars; complements toot; OAuth2 app tokens against the documented, open Mastodon REST API (open protocol / ActivityPub). No ToS/ban risk — self-hostable, per-instance rate limits. Feature-complete through Mastodon 4.5.
