npx -y @modelcontextprotocol/server-slack
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "",
"SLACK_TEAM_ID": ""
}
}
}
}传输方式:stdio
需配置环境变量:SLACK_BOT_TOKENSLACK_TEAM_ID