Pica MCP Server
Allows interaction with Slack, enabling users to list connections, get available actions, and execute actions such as sending messages to channels.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pica MCP Serverlist available actions for Slack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pica MCP Server
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
🔧 Tools
list_user_connections_and_available_connectors - List all available connectors and active connections
get_available_actions - Get available actions for a specific platform
get_action_knowledge - Get detailed information about a specific action
execute_action - Execute API actions with full parameter support
generate_action_config_knowledge - Generate request configurations for code generation
📚 Resources
pica-platform://{platform} - Browse available actions for a platform
pica-connection://{platform}/{key} - View connection details
pica-action://{actionId} - Get detailed action information
💬 Prompts
create-api-integration - Generate code for API integrations
list-platform-actions - Get formatted lists of platform actions
🤖 Sampling
The server supports the MCP sampling capability for generating contextual responses based on conversation history.
Architecture
graph TB
Client["MCP Client<br/>(Claude, VS Code, etc.)"]
Server["Pica MCP Server"]
Transport["StdioServerTransport"]
PicaAPI["Pica API"]
Client <-->|"JSON-RPC<br/>over stdio"| Transport
Transport <--> Server
Server -->|"HTTP/REST"| PicaAPIInstallation
npm install @picahq/pica-mcpDeployment Options
Deploy to Vercel
You can deploy this MCP server to Vercel for remote access:
Install dependencies including Vercel adapter:
npm install @vercel/mcp-adapter zodDeploy to Vercel:
vercelConfigure your MCP client to use the remote server:
For Cursor:
https://your-project.vercel.app/api/mcpFor Claude/Cline: Use
npx mcp-remote https://your-project.vercel.app/api/mcp
See DEPLOYMENT.md for detailed Vercel deployment instructions.
Configuration
Set the following environment variables:
# Required
export PICA_SECRET="your-pica-secret-key"
# Optional
export PICA_BASE_URL="https://api.picaos.com" # Default
export DEBUG="true" # Enable debug loggingUsage
As a Standalone Server
# Using npx
npx @picahq/pica-mcp
# Or if installed globally
pica-mcpWith MCP Inspector
npm run inspectorIn Claude Desktop
Add to your Claude configuration file:
{
"mcpServers": {
"pica": {
"command": "npx",
"args": ["@picahq/pica-mcp"],
"env": {
"PICA_SECRET": "your-pica-secret-key"
}
}
}
}Examples
List Available Connections
// Using the list_user_connections_and_available_connectors tool
const result = await client.callTool({
name: "list_user_connections_and_available_connectors"
});Get Platform Actions
// Using the get_available_actions tool
const actions = await client.callTool({
name: "get_available_actions",
arguments: {
platform: "slack"
}
});Execute an Action
// Using the execute_action tool
const result = await client.callTool({
name: "execute_action",
arguments: {
actionId: "action-id",
connectionKey: "connection-key",
method: "POST",
path: "/api/messages",
data: {
channel: "#general",
text: "Hello from MCP!"
}
}
});Generate Integration Code
// Using the generate_action_config_knowledge tool
const config = await client.callTool({
name: "generate_action_config_knowledge",
arguments: {
platform: "slack",
action: {
_id: "send-message",
path: "/api/messages"
},
method: "POST",
connectionKey: "slack-connection-key",
data: {
channel: "#general",
text: "Hello!"
}
}
});Development
Building
npm run buildWatching for Changes
npm run watchRunning with Debug Mode
DEBUG=true npm run build && node build/index.jsAPI Reference
Tools
list_user_connections_and_available_connectors
Lists all connections in the user's Pica account and available connectors.
Parameters: None
Returns:
connections: Array of active connectionsavailablePicaConnectors: Array of available connectors
get_available_actions
Get available actions for a specific platform.
Parameters:
platform(string, required): Platform name
Returns:
actions: Array of available actions with id, title, and tags
get_action_knowledge
Get detailed information about a specific action.
Parameters:
actionId(string, required): Action ID
Returns:
action: Detailed action information including knowledge base
execute_action
Execute a specific action through the Pica API.
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 variablesqueryParams(object, optional): Query parametersheaders(object, optional): Additional headersisFormData(boolean, optional): Send as multipart/form-dataisFormUrlEncoded(boolean, optional): Send as URL-encoded
Returns:
result: API response datarequestConfig: Request configuration details
generate_action_config_knowledge
Generate request configuration for code generation.
Parameters:
platform(string, required): Platform nameaction(object, required): Action object with _id and pathmethod(string, required): HTTP methodconnectionKey(string, required): Connection keydata(object, optional): Request bodypathVariables(object, optional): Path variablesqueryParams(object, optional): Query parametersheaders(object, optional): Additional headersisFormData(boolean, optional): Send as multipart/form-dataisFormUrlEncoded(boolean, optional): Send as URL-encoded
Returns:
requestConfig: Complete request configurationtypeScriptCode: Example TypeScript code
Resources
Resources can be read using the MCP resource protocol:
pica-platform://{platform}- List of actions for a platformpica-connection://{platform}/{key}- Connection detailspica-action://{actionId}- Detailed action information
Prompts
create-api-integration
Generate code for API integrations.
Arguments:
platform(string, required): Target platformaction(string, required): Action to performlanguage(string, optional): Programming language (default: "typescript")
list-platform-actions
Get a formatted list of available actions.
Arguments:
platform(string, required): Target platform
Error Handling
The server implements comprehensive error handling:
Connection validation before action execution
Path variable validation and substitution
Graceful handling of API failures
Detailed error messages for debugging
Security
API keys are passed via environment variables
Connections are validated before use
All requests include proper authentication headers
License
GPL-3.0
Support
For support, please contact support@picaos.com or visit https://picaos.com
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/moekatib/pica-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server