FastMCP Multi-Tenancy

v1.0.0Cloud Servicesstable

A serverless, multi-tenant implementation of MCP servers that runs on Vercel with fluid compute mode, allowing multiple users to connect to the same endpoint while maintaining session state through Redis.

fastmcp-multi-tenancymcpai-integration
Share:
12
Stars
0
Downloads
0
Weekly
0/5

What is FastMCP Multi-Tenancy?

FastMCP Multi-Tenancy is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to serverless, multi-tenant implementation of mcp servers that runs on vercel with fluid compute mode, allowing multiple users to connect to the same endpoint while maintaining session state through redi...

A serverless, multi-tenant implementation of MCP servers that runs on Vercel with fluid compute mode, allowing multiple users to connect to the same endpoint while maintaining session state through Redis.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A serverless, multi-tenant implementation of MCP servers tha

Use Cases

Run serverless MCP servers on Vercel with Redis session state.
Enable multi-user AI agent deployments with shared infrastructure.
timothywangdev

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedDec 29, 2025
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx fastmcp-multi-tenancy

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use FastMCP Multi-Tenancy

FastMCP Multi-Tenancy (MCPToolKit) is a Python framework for building serverless, multi-tenant MCP servers that run on Vercel with fluid compute mode, using Redis for distributed session state so multiple users can connect to the same endpoint simultaneously without cross-contaminating session data. It provides built-in OAuth integration for providers like Notion and Slack, human approval workflows for high-risk operations, and a decorator-based API so developers can mark individual tools as requiring authentication without managing token storage manually.

Prerequisites

  • Python 3.9 or newer
  • Redis instance (local or cloud, e.g. Upstash, Redis Cloud) with a REDIS_URL connection string
  • Vercel account for serverless deployment (optional for local use)
  • OAuth provider credentials (Notion, Slack) if using authenticated tools
1

Install the MCPToolKit package

Install the package and its dependencies, including the MCP Python SDK.

pip install mcp-python-sdk mcptoolkit
2

Set up a Redis instance

Provision a Redis instance. For local development you can use Docker; for production use Upstash or Redis Cloud. Note the connection URL.

# Local Redis via Docker
docker run -d -p 6379:6379 redis:alpine
export REDIS_URL=redis://localhost:6379/0
3

Define your MCP server with MCPToolKit

Create a server.py file. Public tools are decorated with @server.tool() while authenticated tools also use @requires_auth with the provider name.

from mcptoolkit import MCPToolKit, requires_auth

server = MCPToolKit(
    name="My MCP Server",
    redis_url="redis://localhost:6379/0"
)

@server.tool()
def public_tool() -> str:
    return "No auth required"

@server.tool()
@requires_auth(provider="notion")
def notion_tool() -> str:
    return "Requires Notion OAuth"
4

Deploy to Vercel

Deploy your server.py to Vercel with fluid compute mode enabled. Set REDIS_URL as an environment variable in your Vercel project settings.

vercel deploy --prod
5

Configure your MCP client

Point your MCP client to the deployed Vercel endpoint URL for HTTP/SSE transport, or run locally for development.

{
  "mcpServers": {
    "fastmcp-multi-tenancy": {
      "url": "https://your-project.vercel.app/mcp",
      "transport": "sse"
    }
  }
}

FastMCP Multi-Tenancy Examples

Client configuration

MCP client config for connecting to a deployed MCPToolKit server via SSE transport on Vercel.

{
  "mcpServers": {
    "fastmcp-multi-tenancy": {
      "url": "https://your-project.vercel.app/mcp",
      "transport": "sse",
      "env": {
        "REDIS_URL": "redis://your-redis-host:6379/0"
      }
    }
  }
}

Prompts to try

Example prompts for interacting with a multi-tenant MCPToolKit server.

- "Connect my Notion account so you can read my workspace pages"
- "List all pages in my Notion database using the authenticated tool"
- "Send a message to the #general channel in my Slack workspace"
- "Run the public status check tool to see if the server is healthy"
- "Approve the pending high-risk operation to delete old records"

Troubleshooting FastMCP Multi-Tenancy

Session state is not persisting between requests

Verify that REDIS_URL is correctly set and that the Redis instance is reachable from your deployment. On Vercel, set REDIS_URL as an environment variable in the project settings — local .env files are not read in production. Test Redis connectivity with 'redis-cli -u $REDIS_URL ping'.

OAuth authentication flow fails or tokens are not refreshed

Ensure your OAuth provider credentials (client ID and secret for Notion or Slack) are configured in your server and set as environment variables. MCPToolKit handles token refresh automatically, but the initial OAuth redirect URL must be registered in your provider's allowed redirect URIs.

Vercel deployment times out or cold starts are slow

Enable Vercel Fluid Compute mode in your project settings, which is required for long-lived SSE connections. Without fluid compute, connections may be terminated by Vercel's default function timeout.

Frequently Asked Questions about FastMCP Multi-Tenancy

What is FastMCP Multi-Tenancy?

FastMCP Multi-Tenancy is a Model Context Protocol (MCP) server that serverless, multi-tenant implementation of mcp servers that runs on vercel with fluid compute mode, allowing multiple users to connect to the same endpoint while maintaining session state through redis. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install FastMCP Multi-Tenancy?

Follow the installation instructions on the FastMCP Multi-Tenancy GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with FastMCP Multi-Tenancy?

FastMCP Multi-Tenancy works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is FastMCP Multi-Tenancy free to use?

Yes, FastMCP Multi-Tenancy is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "fastmcp-multi-tenancy": { "command": "npx", "args": ["-y", "fastmcp-multi-tenancy"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use FastMCP Multi-Tenancy?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides