Ever wondered how many Discord servers you're actually in?
Discord's OAuth2 flow lets you request a list of servers a user belongs to with the guilds scope. This app requests exactly that, counts the results, and displays the total to you.
The live site runs as a static frontend on Cloudflare Pages with NobreAPI handling the OAuth token exchange on the backend.
Tokens are only used momentarily to fetch the count and immediately revoked.
This repo is a self-contained version using Flask to serve both the frontend and handle the OAuth flow, useful if you want to host your own instance.
- Python 3.x
- A Discord application with OAuth2 configured
-
Clone the repo
git clone https://github.com/NobreHD/Discord-Server-Count cd Discord-Server-Count -
Install dependencies
pip install -r requirements.txt
-
Create a Discord application at discord.com/developers and add your redirect URI (e.g.
http://localhost:5000/callback) -
Configure your credentials
# Set these as environment variables or add to a .env file CLIENT_ID=your_client_id CLIENT_SECRET=your_client_secret REDIRECT_URI=http://localhost:5000/callback -
Run
python app.py
- Frontend: HTML, CSS, JQuery
- Backend: Python, Flask
- Auth: Discord OAuth2 (
guildsandidentityscopes)