Pica Integration Platform
STDIOHTTP-SSEModel Context Protocol server for Pica that connects AI apps to external tools and data.
Model Context Protocol server for Pica that connects AI apps to external tools and data.
A Model Context Protocol (MCP) server that integrates with the Pica API platform, enabling seamless interaction with various third-party services through a standardized interface. Features enhanced intent detection, improved security, and robust code generation capabilities.
Setup Video: https://youtu.be/JJ62NUEkKAs
Demo Video: https://youtu.be/0jeasO20PyM
The server automatically detects whether you want to:
PICA_SECRET
, PICA_[PLATFORM]_CONNECTION_KEY
Generate production-ready code in:
npm install @picahq/pica-mcp
You can deploy this MCP server to Vercel for remote access:
Install dependencies including Vercel adapter:
npm install @vercel/mcp-adapter zod
Deploy to Vercel:
vercel
Configure your MCP client to use the remote server:
https://your-project.vercel.app/api/mcp
npx mcp-remote https://your-project.vercel.app/api/mcp
See DEPLOYMENT.md for detailed Vercel deployment instructions.
npx @picahq/pica-mcp
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "pica": { "command": "npx", "args": ["@picahq/pica-mcp"], "env": { "PICA_SECRET": "your-pica-secret-key" } } } }
In the Cursor menu, select "MCP Settings" and update the MCP JSON file to include the following:
{ "mcpServers": { "pica": { "command": "npx", "args": ["@picahq/pica-mcp"], "env": { "PICA_SECRET": "your-pica-secret-key" } } } }
Build the Docker Image:
docker build -t pica-mcp-server .
Run the Docker Container:
docker run -e PICA_SECRET=your_pica_secret_key pica-mcp-server
To install pica for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @picahq/pica --client claude
Natural Language:
"Read my last 5 emails from Gmail"
What happens:
Natural Language:
"Create a React UI and write the code to send emails using Gmail"
What happens:
The server automatically detects your intent based on natural language:
The server will ask: "Would you like me to execute this action now, or generate code for you to use?"
# Always required PICA_SECRET=your-pica-secret-key # Required when generating code for specific platforms PICA_GMAIL_CONNECTION_KEY=your-gmail-connection-key PICA_SLACK_CONNECTION_KEY=your-slack-connection-key # etc.
Execute a specific action immediately and return actual results. Use ONLY when the user wants immediate action execution.
When to use: "send this email now", "get my data", "create this item"
Parameters:
actionId
(string, required): Action IDconnectionKey
(string, required): Connection keymethod
(string, required): HTTP methodpath
(string, required): API pathdata
(object, optional): Request bodypathVariables
(object, optional): Path variables for URL templatingqueryParams
(object, optional): Query parametersheaders
(object, optional): Additional headersisFormData
(boolean, optional): Send as multipart/form-dataisFormUrlEncoded
(boolean, optional): Send as URL-encodedReturns:
result
: Actual API response datarequestConfig
: Sanitized request configuration (no secrets)Generate secure request configuration for building real integration code. Use when the user wants to build apps, write code, or create integrations.
When to use: "write code", "build an app", "create a UI", "show me how to implement"
Parameters:
platform
(string, required): Platform nameaction
(object, required): Action object with _id and pathmethod
(string, required): HTTP methodconnectionKey
(string, required): Connection keylanguage
(string, optional): Programming languagedata
(object, optional): Request bodypathVariables
(object, optional): Path variables for URL templatingqueryParams
(object, optional): Query parametersheaders
(object, optional): Additional headersisFormData
(boolean, optional): Send as multipart/form-dataisFormUrlEncoded
(boolean, optional): Send as URL-encodedReturns:
requestConfig
: Sanitized request configuration with environment variablesenvironmentVariables
: Required environment variables and descriptionsactionKnowledge
: API documentation and parameter detailscodeGenerationInstructions
: Guidelines for creating production codeexampleUsage
: Code structure exampleThe server implements comprehensive error handling:
GPL-3.0
For support, please contact [email protected] or visit https://picaos.com