Documentation Index
Fetch the complete documentation index at: https://docs.pipeshub.com/llms.txt
Use this file to discover all available pages before exploring further.
What is the PipesHub MCP Server?
PipesHub exposes a remote MCP endpoint over Streamable HTTP at/mcp. MCP clients connect to this endpoint directly — no local npm packages or stdio processes needed.
This lets AI clients such as Cursor, Claude Code, Gemini CLI, Claude.ai (Web), and LibreChat search and chat over your organization’s indexed documents, look up people and groups, and download files.
Looking for the tool reference? See Tools Reference for descriptions, arguments, and a decision guide for each tool the MCP server exposes.
Prerequisites
- A running PipesHub instance (self-hosted or cloud)
- An OAuth app created in PipesHub (see Step 1 below)
Step 1: Create an OAuth App
Open Developer Settings
Log in to your PipesHub instance as an admin and navigate to Settings > Developer Settings > OAuth Apps.
Create the app
Click Create OAuth App and fill in the app details:
- Name: e.g.,
MCP Integration - Redirect URIs: Add the redirect URIs for the clients you plan to use (see the table below).
Redirect URIs
Add all the redirect URIs for the clients you plan to use:| Client | Redirect URI |
|---|---|
| Cursor | cursor://anysphere.cursor-mcp/oauth/callback |
| Claude Code | http://localhost:<PORT>/callback (e.g., http://localhost:8080/callback) |
| Claude.ai (Web) | https://claude.ai/api/mcp/auth_callback |
| Gemini CLI | http://localhost:7777/oauth/callback |
| LibreChat | http://localhost:3080/api/mcp/<server-identifier>/oauth/callback |
Customizing Default Scopes
By default, PipesHub exposes some default scopes in its/.well-known/oauth-protected-resource/mcp discovery endpoint. You can customize which scopes are exposed by setting the MCP_SCOPES environment variable on your PipesHub instance. This is useful for clients like Claude Code that automatically request all exposed scopes.
The recommended MCP_SCOPES value covers the common chat, search, and directory workflows:
Placeholders
Replace these placeholders in all client configurations:| Placeholder | Description | Example |
|---|---|---|
PIPESHUB_INSTANCE_URL | Your PipesHub instance URL | https://app.pipeshub.com |
YOUR_CLIENT_ID | OAuth app client ID | clid_abc123... |
YOUR_CLIENT_SECRET | OAuth app client secret | clsec_xyz789... |
YOUR_BEARER_TOKEN | JWT Bearer token (local stdio only) | eyJhbGci... |
PIPESHUB_INSTANCE_URL/mcp
Client Setup Guides
Pick your client to connect it to the PipesHub MCP server:Cursor
Remote MCP via the
auth object in mcp.json.Claude Code
Remote HTTP MCP with static OAuth credentials.
Gemini CLI
Remote MCP with OAuth dynamic discovery.
Claude.ai (Web)
Custom connectors in the Claude.ai web interface.
LibreChat
Remote MCP via the custom connectors UI.
Local Server (Stdio)
Run the MCP server locally as a stdio process.
How It Works
Architecture
OAuth Protected Resource Discovery
PipesHub exposes OAuth protected resource discovery at:- Authorization:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/authorize - Token:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/token - Revocation:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/revoke - JWKS:
PIPESHUB_INSTANCE_URL/.well-known/jwks.json
Troubleshooting
Incompatible auth server: does not support dynamic client registration
Incompatible auth server: does not support dynamic client registration
This means the client is trying dynamic registration instead of using your pre-configured credentials. Make sure you passed
--client-id and --client-secret (Claude Code) or the auth object (Cursor) correctly.Authentication fails / redirect error
Authentication fails / redirect error
Ensure the Redirect URI in your OAuth app matches exactly what the client uses:
- Cursor:
cursor://anysphere.cursor-mcp/oauth/callback - Claude Code:
http://localhost:<callbackPort>/callback - Claude.ai:
https://claude.ai/api/mcp/auth_callback - Gemini CLI:
http://localhost:7777/oauth/callback - LibreChat:
http://localhost:3080/api/mcp/<server-identifier>/oauth/callback
Cannot reach MCP endpoint
Cannot reach MCP endpoint
- Verify the endpoint is accessible:
curl -X POST PIPESHUB_INSTANCE_URL/mcp(should return 401, not a connection error).
Debugging with MCP Inspector
Debugging with MCP Inspector
PIPESHUB_INSTANCE_URL/mcp with a Bearer token to test the endpoint directly.FAQ
How do I update the scopes for my MCP integration?
How do I update the scopes for my MCP integration?
- Update the
MCP_SCOPESenvironment variable on your PipesHub instance to include the new scopes you want exposed via the discovery endpoint. - Update the OAuth app scopes in PipesHub: go to Settings > Developer Settings > OAuth Apps, select your OAuth app, and add or remove scopes as needed.
- Re-authenticate the client — existing tokens carry the old scopes, so you need to re-authenticate to get a new token with the updated scopes:
- Cursor: Remove and re-add the MCP server, or clear the cached OAuth token and reconnect.
- Claude Code: Run
/mcpand complete the browser login flow again. - Gemini CLI: Run
/mcp auth pipeshubto re-authenticate. - Claude.ai: Disconnect and reconnect the connector in Settings > Connectors.


















