Free · open sourceMCP server for Gmailv1.0 · MIT licence
Connect every Gmail inbox to your AI. Not just one.
Most AI assistants let you plug in a single inbox. A business has several: yours, support@, billing@, a personal Gmail. Inbox Switchboard puts all of them behind one connection, so your assistant can search, sort, draft and reply in each, and always knows which mailbox it is in.
What it is, what you can ask it, and the eight setup steps, start to finish.
How it works
Many inboxes in. One connection out.
Your inboxes
you@yourcompany.comsupport@yourcompany.combilling@yourcompany.comyour personal Gmail
As many as you like. Google Workspace and personal Gmail both work.
Inbox SwitchboardOne small program on your computer. It holds a separate sign-in for each mailbox and routes every request to the right one.
Your AI assistantClaude Code, Claude Desktop, Cursor, or any app that speaks MCP. You ask in plain words; it works in the mailbox you name.
What you can ask
Plain questions, across all your mail.
“Check every inbox for anything from our accountant this month.”
“Draft replies to the three oldest unanswered emails in support@.”
“Find last week's invoices in billing@ and list who has not paid.”
“Archive the newsletters in my personal Gmail and label the receipts.”
What is inside
21 things your assistant can now do in every inbox.
Each one is a “tool” the assistant can pick up. You never type their names. You ask in plain words, it chooses the tools and tells you which mailbox it is working in.
Mailboxes 3
Decide which inboxes are plugged in.
list_mailboxesLists every mailbox that is connected.
authorize_mailboxConnects a new mailbox with a Google sign-in link you approve.
remove_mailboxDisconnects a mailbox and deletes its saved sign-in.
Find and read 4
Look things up without opening Gmail.
search_mailSearches a mailbox, archived mail included, with Gmail search words.
get_messageOpens one email: sender, subject, body, attachments.
get_threadReads a whole conversation in order.
get_attachmentFetches an attachment from an email.
Labels 3
Keep things filed your way.
list_labelsLists the labels in a mailbox.
create_labelCreates a new label.
apply_labelsAdds or removes labels on one or many emails.
Organise 5
Clear the inbox in bulk.
mark_readMarks emails read or unread.
star_mailStars or unstars emails.
archive_mailTakes emails out of the inbox but keeps them.
mark_spamSends emails to Spam, or rescues them.
trash_mailMoves emails to Trash, where Gmail keeps them 30 days.
Write 2
Drafts wait for you to review.
draft_mailWrites a new email into Drafts. Plain or formatted, with CC and BCC.
reply_draftWrites a reply inside the conversation and leaves it in Drafts.
Send 4
Only after you say so, or never, in drafts-only mode.
send_mailSends a new email from the mailbox you name.
reply_mailSends a reply in the existing conversation.
send_draftSends a draft that is already written.
forward_mailForwards an email with its attachments.
What it cannot do: delete mail for good, change your Gmail settings or filters, read your contacts or calendar, or touch a mailbox you have not connected.
Set it up
Two ways. Pick the one that suits you.
The only fiddly part is the first one: creating your own free Google key, so the tool is allowed to reach your mailboxes. You can hand that part to an AI that works in your browser, or do it yourself with the pictures below.
Easiest
Let your AI do the clicking
If you use Claude in Chrome or another assistant that can work in your browser, paste this. It opens Google Cloud, walks through steps 1 to 4 with you and stops for anything private, like a password.
Walk me through creating a Google OAuth client for a tool called Inbox Switchboard.
Work in my browser, one step at a time, and tell me what you are about to click before you click it.
1. Open console.cloud.google.com and create a new project named "Inbox Switchboard".
2. In APIs & Services > Library, enable the Gmail API for that project.
3. Open Google Auth Platform and click Get started. App name "Inbox Switchboard", my email for support and contact. For Audience choose Internal if all my mailboxes are in one Google Workspace; otherwise choose External.
4. If you chose External: on the Audience page, click Publish app so the status is "In production".
5. On the Clients page, create a client with application type "Desktop app", then download its JSON.
Stop and let me handle any sign-in, password or billing screen myself. Do not change anything else in my Google account. The downloaded JSON file is a secret: do not open it, read it, or show its contents, and never ask me to paste it into this chat. When it has downloaded, just tell me to run "npx -y github:kowalcg/inbox-switchboard setup" in my own terminal.
When it is done you will have one small file in Downloads. Do not open it or paste it anywhere. Carry on from step 5.
Do it yourself
Follow the eight pictures
Every step has a simplified picture of the screen, with the thing to click marked in orange. Steps 1 to 4 happen on Google's site. Steps 5 to 8 happen on your computer.
Go to console.cloud.google.com and sign in with the Google account you use for work. At the top, open the project menu, choose New project, name it Inbox Switchboard and click Create.
It is free. A project is just a folder that holds your key. If Google offers a paid trial, you can skip it.
APIs & Services › Library
Search for APIsgmail
Gmail APIGoogle · read and send mail
Enable
Step 2 of 8 · on Google's site
Turn on the Gmail API
Open the menu (☰) and choose APIs & Services › Library. Search for Gmail, open Gmail API and click Enable.
This tells Google your project is allowed to talk to Gmail. Nothing is connected yet.
Google Auth Platform
Get started
Internalall mailboxes in one Google Workspace
Externalany personal Gmail, or several companies
Audience › TestingPublish app
Step 3 of 8 · on Google's site
Describe your app to Google
Open the menu and choose Google Auth Platform, then Get started. Type an app name and your email. When it asks for the audience:
Internal if every mailbox is in the same Google Workspace. You are done with this step.
External for anything else. When the wizard finishes, open Audience and click Publish app.
Do not skip Publish app. In “Testing”, Google ends every sign-in after 7 days. Publishing for your own use needs no review; you will just see a “Google hasn't verified this app” notice later, which is expected because the app is yours.
Google Auth Platform › Clients
Create client
Application typeDesktop app ▾
Client createdclient_secret_….json
Download JSON
Step 4 of 8 · on Google's site
Create your key and download it
Still in Google Auth Platform, open Clients and click Create client. For application type pick Desktop app, click Create, then Download JSON.
You now have a file in Downloads whose name starts with client_secret. Treat it like a house key: do not email it or put it in a shared folder.
Terminal
$ npx -y github:kowalcg/inbox-switchboard setup
✓ Stored your Google key in macOS Keychain.
✓ Deleted the downloaded file
Next: “Connect my mailbox you@yourcompany.com”
Step 5 of 8 · on your computer
Lock the key in your password vault
Open the Terminal on a Mac (press ⌘ + Space, type Terminal) or PowerShell on Windows. Paste this and press Enter:
npx -y github:kowalcg/inbox-switchboard setup
It finds the key in Downloads, stores it in your computer’s password vault (Keychain on a Mac) and deletes the download. No key file is left behind.
Never paste the key into a chat, including your AI assistant. You run this command; the assistant never sees the key.
Never email it or keep it in a shared or synced folder.
If it ever gets out, delete the client in Google Cloud and repeat steps 4 and 5.
In Claude Desktop open Settings › Developer › Edit Config, add this and restart the app. You need Node.js installed. It fetches the tool from GitHub the first time it runs.
Draft replies to the two oldest in support@. Don't send.
2 drafts are waiting in support@ for you to review.
Step 8 of 8 · done
Try it
List my mailboxes, then show me the unread mail from this week in each one.
From here, name the mailbox in your request (“in support@…”) or ask across all of them.
Want drafts only, so nothing is ever sent for you?
Add this line to the server's entry in your MCP config. The send tools disappear and every message waits in Gmail drafts.
"env": { "INBOX_SWITCHBOARD_NO_SEND": "1" }
Step 1 of 8
Built to be safe
Your mail stays yours.
Nothing in the middle
It runs on your computer and talks straight to Google. No mail passes through me or any other service.
Your key, in your vault
The key and every sign-in are locked in your computer’s password vault, not in a file. Your assistant never sees them. Switch the key off in Google and every connection stops.
Cannot delete for good
The permission it asks for does not allow permanent deletion. The most it can do is move mail to Trash.
Drafts-only switch
One setting removes sending altogether. The assistant writes; you read it and press Send.
One habit worth keeping: email can contain text written to trick an AI. Read what your assistant proposes before you approve it, the same way you would check a new employee's first replies.
Why I'm giving it away
I run several businesses and a road race, which means a lot of inboxes. The standard email connectors handle one. So I built this for myself, and it has become the tool I use most: one request, and my assistant checks the right mailbox, drafts the reply from the right address and files what is left.
It is the same kind of system I build inside other companies. If you would rather have it installed, connected to your team's inboxes and working in one sitting, or you want the next step (triage rules, invoice filing, a daily brief), that is what I do.
In your computer's password vault: Keychain on a Mac, the system keyring on Linux, and a file encrypted for your account on Windows. You put it there yourself with one setup command, which also deletes the downloaded key file. The key is never pasted into a chat and your AI assistant never sees it. Every mailbox sign-in is stored the same way.
What is an MCP server?
MCP is the standard way AI assistants plug into other tools. An MCP server is a small program that gives the assistant a set of actions, in this case "search this mailbox", "draft a reply" and so on. Inbox Switchboard is one file that runs on your own computer.
Is my email sent to you, or to anyone else?
No. The program runs on your computer and talks straight to Google. There is no server in the middle and nothing comes to me. Your AI assistant sees the messages you ask it to read, the same as with any email connector.
Why do I have to create my own Google key?
Because it keeps you in control. The key belongs to your Google account, so only you decide which mailboxes it can reach, and you can switch it off at any time. It takes about ten minutes once, and your AI assistant can do most of the clicking for you.
Does it work with personal Gmail and with Google Workspace?
Yes, both, and you can mix them: a company mailbox, a shared support@ address and a personal Gmail can all sit behind the one connection.
Can it delete my email?
It cannot delete anything permanently. The permission it asks Google for does not allow it. It can move messages to Trash, where Gmail keeps them for 30 days.
Can it send email without asking me?
The server tells the assistant to confirm the recipients and the wording with you before anything is sent. If you want a hard guarantee, turn on drafts-only mode: the send tools are removed and every message waits in your Gmail drafts until you press Send yourself.
Which AI assistants does it work with?
Any app that can run a local MCP server, including Claude Code, Claude Desktop and Cursor. Assistants that only accept hosted connectors cannot use it yet.
What does it cost?
Nothing. The code is free under the MIT licence, and Google does not charge for the Gmail API at this kind of use. You only need the AI assistant you already pay for.
A mailbox stopped working after a week. Why?
Your Google app is still in "Testing", and Google ends every sign-in after 7 days in that mode. Open Google Auth Platform, go to Audience, click Publish app, then connect the mailbox again.
Does it work with Outlook or other email?
Not yet. This version is Gmail and Google Workspace only.