Pipedream MCP Server is a reference implementation that allows you to run your own Model Context Protocol (MCP) server for integrating with over 2,800 apps and APIs. While this version is primarily for learning and self-hosting, Pipedream recommends their remote MCP server for production use.
Before running the MCP server, you'll need to set up your Pipedream account and credentials:
PIPEDREAM_CLIENT_ID=your_client_id
PIPEDREAM_CLIENT_SECRET=your_client_secret
PIPEDREAM_PROJECT_ID=your_project_id
PIPEDREAM_PROJECT_ENVIRONMENT=development
The simplest way to run the MCP server locally is using NPX:
npx @pipedream/mcp
For a more complete development setup:
# Clone the repository and navigate to it
# Copy the example environment file
cp .env.example .env
# Install dependencies
pnpm install
# Start the server with Streamable HTTP Transport
pnpm dev:http
# For debugging (optional)
PD_SDK_DEBUG=true pnpm dev:http
There are two main ways to use the MCP server:
/{external_user_id}/{app}
This endpoint is dedicated to a specific application. For example, if your user with ID "123" wants to connect to Slack:
/123/slack
All tools available for Slack will be accessible at this endpoint.
/{external_user_id}
This experimental version allows tools to update dynamically and is used to power the tools on Pipedream's chat application.
You can test your MCP server using the MCP Inspector:
npx @modelcontextprotocol/inspector
When prompted, use one of these URLs:
http://localhost:3010/v1/{external_user_id}/{app}http://localhost:3010/{external_user_id}/{app}Replace {external_user_id} with your user's unique identifier and {app} with the app's name slug.
The SSE server is particularly useful when running MCP servers for your application. The key parameters to understand are:
external_user_id: Your user's unique identifier in your systemapp: The app's "name slug" (unique identifier for the app)For example, if user "123" wants to connect to Slack (app slug: "slack"), your MCP client would make a request to /123/slack.
For testing with Stdio transport (only tested with the MCP Inspector):
npx @modelcontextprotocol/inspector bun src/stdio.ts
After running this command, check the logs for the inspector URL, then press "List Tools" to fetch the available MCP tools.
When running the MCP server for your application, you'll use your own user identifiers. Any requests to a specific user route are coupled to that end user and will use the authentication that Pipedream stores for that user.
Each app in Pipedream has a unique "name slug" that identifies it. You can find this in the Authentication section of any Pipedream app. For example, the app slug for Slack is "slack".
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "pipedream" '{"command":"npx","args":["@pipedream/mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"pipedream": {
"command": "npx",
"args": [
"@pipedream/mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"pipedream": {
"command": "npx",
"args": [
"@pipedream/mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect