A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A hosted version of the Everything server - for demonstration and testing purposes, hosted at https://example-server.mod
This repository provides a complete MCP server implementation that
The Model Context Protocol enables seamless integration between AI applications and external data sources, tools, and services.
To start exploring ASAP:
# Clone and install
git clone https://github.com/modelcontextprotocol/example-remote-server.git
cd example-remote-server
npm install
# Start the server with in-process auth and in-memory session management
npm run dev:internal
# In another terminal, run MCP Inspector
npx -y @modelcontextprotocol/inspector
# Inspector will open a browser window.
# Connect to http://localhost:3232/mcp to authenticate and explore server features
The server is now running a lightweight config with everything bundled in a single process:
Other configurations are available: see Development Setup, below.
This server implements the complete MCP specification:
The codebase supports a number of configurations ranging from simple/exploratory to something closer to how a production deployment would look.
| Development/Exploration | Productionesque | |
|---|---|---|
| Auto-restart | npm run dev:* • Auto-restarts on file changes • Verbose logging • Source maps enabled | npm run start:* • Requires build step first • Optimized performance • No auto-restart |
| Auth Mode | internal • OAuth in same process • Single port (3232) • Easier to debug | external • Separate auth server • Multiple ports (3001 + 3232) • Can point to commercial auth provider instead |
| Session Storage | In-memory • No dependencies • Sessions lost on restart • Single instance only | Redis • Requires Docker/Redis • Sessions persist • Multi-instance ready |
Server configuration is determined by environment variables. To set up a non-default configuration, copy .env.example to .env and edit as desired, or pass non-defaults on the command line.
Some example commands for different configurations are listed below. See the Authentication Config and Session Management Config sections below for detailed instructions on changing those configurations.
# Development mode - watches for file changes and auto-restarts
npm run dev:internal # Internal auth
# or
npm run dev:external # External auth
# Production mode - optimized build, no auto-restart
npm run build # Build TypeScript to JavaScript first
# then
npm run start:internal # Internal auth
# or
npm run start:external # External auth
# Redis-backed sessions
docker compose up -d # Start Redis first
# configure REDIS_URL or pass on command line - see Session Management Config below - e.g.
REDIS_URL=redis://localhost:6379 npm run dev:internal
# Sessions will now persist across restarts
# Verify Redis is being used
npm run dev:internal 2>&1 | grep -i redis
# Should show: "Redis client connected successfully" or similar
This repo implements the separate auth server architecture pattern described in the MCP specification, in which the MCP server is the "resource server", and authorization functionality is hosted separately. (The architecture in which resource and authorization server functions are tightly integrated within the MCP server is deprecated, and is not demonstrated in this codebase.)
For convenience and simplicity during exploration, the server supports an internal auth mode, in which OAuth 2.0 endpoints are hosted in the same process as the MCP server. However, it remains architecturally separate from the MCP server itself: there is no entanglement of MCP and authorization functionality in the codebase. To run the server in this mode, use npm run dev:internal.
External auth mode is the standard configuration in which the MCP server and authentication servers run as separate processes. A demonstration authorization server is provided in this repo, and you can also point to commercial providers like Auth0 or Okta by updating the relevant config options. To run the MCP server in external mode, use npm run dev:external: this command will also start the separate demo auth server.
Note: choice of mode and OAuth server does not affect the MCP server's interaction with clients during authorization. It simply determines the authorization server endpoints returned in Protected Resource Metadata.
Authentication Environment Variables:
AUTH_MODE - Sets the authentication mode:
internal (default) - Auth endpoints run in-process with the MCP serverexternal - Auth endpoints run on a separate serverAUTH_SERVER_URL - URL of the external auth server (required when AUTH_MODE=external, ignored when AUTH_MODE=internal)
http://localhost:3001https://your-tenant.auth0.comhttps://your-domain.okta.comBy default, the server uses in-memory session storage for development and local single-session testing. This simplifies getting the server up and running for exploration, but confines sessions to a single server instance and destroys them on server restarts.
For multi-instance testing and persistent sessions, the server also supports Redis-managed session storage.
Setting up Redis:
Install Docker (if not already installed):
Start Redis using Docker Compose:
docker compose up -d # Starts Redis in the background
To stop Redis later:
docker compose down
Configure the server to use Redis by setting environment variables:
Session Storage Environment Variables:
REDIS_URL - Redis connection URL (optional)
redis://localhost:6379 (Redis default port)REDIS_TLS - Enable TLS for Redis connection
1 or true to enable TLS0 (disabled)REDIS_PASSWORD - Redis password for authentication (if required)
NODE_ENV - Controls Redis connection failure behavior:
development (default) - Server continues with warning if Redis failsproduction - Server exits if Redis connection failsNote: Docker container config can be found in .devcontainer/docker-compose.yml.
As noted above, MCP Inspector is the recommended way to explore the server's capabilities:
# With server running
npx -y @modelcontextprotocol/inspector
# 1. Connect to http://localhost:3232/mcp (adjust port to match current config is needed)
# 2. Go through authorization steps
# 3. Explore OAuth authentication in the Auth tab
# 4. Test tools, resources, and prompts interactively
The examples/ directory contains scripts that interact with MCP endpoints directly, without use of SDK functionality. These can help build intuition for how the protocol works under the hood:
client.js - Node.js client demonstrating OAuth and MCP operationscurl-examples.sh - Shell script showing raw HTTP usagenpm run lint # Code linting
npm run typecheck # Type checking
npm test # Unit tests
npm run test:e2e # End-to-end tests
.
├── src/ # Source code
│ ├── index.ts # Server entry point
│ ├── config.ts # Configuration management
│ ├── interfaces/
│ │ └── auth-validator.ts # Clean auth/MCP boundary
│ ├── modules/
│ │ ├── auth/ # Demo OAuth 2.0 implementation
│ │ │ ├── auth/ # Core auth logic and providers
│ │ │ ├── handlers/ # Mock upstream IdP handler
│ │ │ ├── services/ # Auth and Redis-backed session services
│ │ │ ├── static/ # OAuth frontend assets
│ │ │ ├── index.ts # Auth module router
│ │ │ └── types.ts # Auth type definitions
│ │ ├── mcp/ # MCP protocol implementation
│ │ │ ├── handlers/ # Streamable HTTP and SSE handlers
│ │ │ ├── services/ # MCP core and Redis transport
│ │ │ ├── index.ts # MCP module router
│ │ │ └── types.ts # MCP type definitions
│ │ └── shared/ # Shared utilities
│ │ ├── logger.ts # Logging configuration
│ │ └── redis.ts # Redis client with mock fallback
│ └── static/ # Static web assets
├── examples/ # Example client implementations
│ ├── client.js # Node.js client with OAuth flow
│ └── curl-examples.sh # Shell script with curl examples
├── docs/ # Additional Documentation
├── tests/ # Test files
├── .env.example # Environment variable template
├── docker-compose.yml # Docker setup for Redis
├── package.json # Node.js dependencies
└── tsconfig.json # TypeScript configuration
Additional documentation can be found in the docs/ directory:
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
MIT License - see LICENSE file for details.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba