Capes logo

Capes

by Dipeshpal

Self-hosted Vercel MCP server for Gmail, Discord, X, and Telegram with configurable access controls.

Install Capes

Run the project’s own setup commands, in order.

Setup steps from the project

Dipeshpal/capes installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Configure
    node scripts/capes.mjs env --name <your-project-name>
    
  2. 2. Install
    git clone https://github.com/Dipeshpal/capes.git
    
  3. 3. Install
    cd capes
    
  4. 4. Install
    node scripts/capes.mjs install
    
  5. 5. Install
    node scripts/capes.mjs install --name my-capes --database postgres://... --dashboard-user admin --dashboard-password your8pluscharpassword --discord TOKEN --apify TOKEN --gmail you@gmail.com --gmail-password APP_PASSWORD --clients desktop,cursor
    
  6. 6. Add to your MCP client
    node scripts/capes.mjs connect        # configures Claude Desktop, Claude Code, Cursor, Codex
    

Overview

Dipeshpal/capes gives Claude, Codex, Cursor, and other MCP clients one self-hosted endpoint for Gmail, Discord, X, and Telegram actions. Deploy it to Vercel, protect the `/mcp` endpoint with an API key, and manage credentials, tool access, and activity from an owner dashboard. Its 68 tools cover messaging, email, search, moderation, drafts, channels, and related operations, with service-level switches, per-tool controls, and a read-only mode. Reach for it when you want one private MCP gateway across multiple AI clients without using a hosted connector platform.

Use cases

  • Brief customer email, Discord support, and X activity in one request
  • Draft Gmail replies before sending them
  • Post and moderate messages in Discord communities
  • Search recent X posts about a product
  • Restrict an AI client to read-only account access

Key features

  • 68 tools for Gmail, Discord, X, and Telegram
  • Self-hosted deployment on Vercel
  • Owner dashboard for credentials, tools, and activity
  • Per-service and per-tool access switches
  • Server-wide read-only mode
  • Encrypted credential storage in owner-controlled Postgres

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 32d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.

How Capes works

What Dipeshpal/capes does

Dipeshpal/capes connects MCP-compatible AI clients to four services through a server you deploy in your own Vercel account: Gmail, Discord, X, and Telegram. The project exposes 68 tools in one endpoint rather than requiring a separate connector for each client or service.

Gmail support includes Gmail-syntax search, message reading, sending, replying, forwarding, drafts, labels, archiving, and trash operations. Discord tools cover reading and posting messages, edits, deletion, reactions, threads, forums, polls, files, webhooks, channels, roles, permissions, moderation, and audit logs. X is represented by a tweet-search tool backed by an Apify scraper. Telegram tools send messages, retrieve chat information, and poll recent updates.

The owner dashboard lets you test service credentials, inspect and try available tools, review recent activity, and copy client connection configuration. It also provides controls for disabling a service, disabling individual tools, or switching the entire server into read-only mode. Tools are categorized as read, write, or destructive.

How it works

The deployed application exposes an /mcp endpoint for AI clients and a /dashboard route for administration. Requests to the MCP endpoint use an MCP_API_KEY. Before a tool runs, a guard checks the key, validates arguments, and applies the configured access limits.

Credentials can be supplied through Vercel environment variables or stored in encrypted form in the owner’s Postgres database. The supported service credentials include a Gmail app password, a Discord bot token, and an Apify token for X search. The deployment is intended to keep these credentials within the owner’s Vercel project and database.

Setup and configuration

Create a Vercel account, generate an MCP API key, obtain credentials for the services you plan to use, and deploy the project. The documented setup flow takes about 20 minutes, depending on how many service credentials you create. A Postgres connection is used for the deployment, with a session-pooler URL recommended for hosted Postgres providers such as Supabase.

Configure MCP_API_KEY, DATABASE_URL, and ENCRYPTION_KEY for the deployment. The encryption key and MCP key should be separate long random strings. The dashboard can use the MCP key for sign-in, or you can configure separate DASHBOARD_USER and DASHBOARD_PASSWORD values. Service credentials may be entered during deployment or added afterward through the dashboard.

After deployment, open /dashboard to test connectors and adjust tool access. Connect an MCP client to the deployed /mcp endpoint using the API key and the generated client configuration.

Tools and capabilities

  • Search Gmail using Gmail query syntax and manage messages, drafts, labels, archives, and trash.
  • Read, post, edit, delete, and react to Discord messages.
  • Work with Discord threads, forums, polls, files, webhooks, channels, roles, permissions, moderation, and audit logs.
  • Search tweets through an Apify-backed X connector.
  • Send Telegram messages, inspect chat information, and poll recent updates.
  • Test connectors and invoke tools from the dashboard.
  • Apply read-only, service-level, and individual-tool restrictions.

Limitations and notes

The deployment requires your own Vercel project and Postgres database. Gmail access uses an app password rather than a Google Cloud project. X search depends on an Apify scraper and token. Write and destructive actions can be restricted, but the corresponding services and tools must be configured before they can be used. The server is designed for a single owner-controlled deployment rather than a centrally managed hosted account.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Capes

Dipeshpal/capes is an MCP server that connects AI clients to Gmail, Discord, X, and Telegram through a self-hosted Vercel deployment. Its 68 tools support email, messaging, Discord administration, tweet search, and Telegram operations, while the dashboard controls credentials, tool access, activity, and read-only behavior.

Deploy Dipeshpal/capes to your own Vercel account, configure the MCP key, Postgres connection, encryption key, and service credentials, then connect your MCP client to `/mcp`. The dashboard at `/dashboard` helps test connectors and provides client configuration.

Yes, Dipeshpal/capes works with Cursor through its deployed MCP endpoint. Use the dashboard to copy the client configuration, then provide the endpoint and `MCP_API_KEY` to Cursor.

Yes, the dashboard can put the whole server into read-only mode. You can also disable individual services or tools, allowing more specific control over which actions an AI client may call.

Dipeshpal/capes uses an MCP API key, a Postgres connection, and an encryption key for the deployment, plus credentials for the services you enable. Gmail uses an app password, Discord uses a bot token, and X search uses an Apify token.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCapes AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dipeshpal-capes?style=directory)](https://allmcps.com/mcp/dipeshpal-capes)
HTML Embed
<a href="https://allmcps.com/mcp/dipeshpal-capes"><img src="https://allmcps.com/api/badge/dipeshpal-capes?style=directory" alt="Capes on AllMCPs" /></a>