Slack リモートMCPを Gemini CLI にMCP接続する方法(設定手順)
Slack (Salesforce) のリモートMCPサーバーを Gemini CLI に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。
Streamable HTTPhttps://mcp.slack.com/mcp
Install in Cursor →
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"slack": {
"url": "https://mcp.slack.com/mcp"
}
}
}claude mcp add --transport http slack https://mcp.slack.com/mcp
Install in VS Code →
Or add to .vscode/mcp.json:
{
"servers": {
"slack": {
"type": "http",
"url": "https://mcp.slack.com/mcp"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.slack.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.slack.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"slack": {
"serverUrl": "https://mcp.slack.com/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"slack": {
"url": "https://mcp.slack.com/mcp"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.slack] url = "https://mcp.slack.com/mcp"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"slack": {
"type": "streamableHttp",
"url": "https://mcp.slack.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"slack": {
"httpUrl": "https://mcp.slack.com/mcp"
}
}
}接続手順
- 設定ファイルを編集 —
~/.gemini/settings.jsonを開きます。 - サーバーを追加 —
mcpServersに"slack": { "httpUrl":https://mcp.slack.com/mcp}を追加します。 - 認証を完了 — 初回呼び出し時に Slack (Salesforce) の OAuth 認可画面が開きます。許可するとツールが有効になります。
- 検証 — オンライン Inspector に
https://mcp.slack.com/mcpを貼り付け、initialize と tools/list を実行して接続を確認します。
🧰 ツール一覧(17)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| search_channels ~31 tok | 🟢 Read | Search channels in the workspace. | — |
| read_channel_history ~32 tok | 🟢 Read | Read messages from a channel. | — |
| search_messages ~32 tok | 🟢 Read | Search messages across the workspace. | — |
| get_thread_replies ~30 tok | 🟢 Read | Get replies in a thread. | — |
| send_message ~29 tok | 🟠 Write | Post a message to a channel. | — |
| update_message ~28 tok | 🟠 Write | Update a sent message. | — |
| delete_message ~27 tok | 🔴 Destructive | Delete a message. | — |
| add_reaction ~31 tok | 🟠 Write | Add an emoji reaction to a message. | — |
| list_users ~27 tok | 🟢 Read | List workspace users. | — |
| get_user_profile ~29 tok | 🟢 Read | Get a user's profile. | — |
| create_canvas ~28 tok | 🟠 Write | Create a Slack canvas. | — |
| get_canvas ~27 tok | 🟢 Read | Read a Slack canvas. | — |
| list_channel_members ~31 tok | 🟢 Read | List members of a channel. | — |
| create_channel ~27 tok | 🟠 Write | Create a channel. | — |
| archive_channel ~28 tok | 🔴 Destructive | Archive a channel. | — |
| pin_message ~29 tok | 🟠 Write | Pin a message in a channel. | — |
| upload_file ~28 tok | 🟠 Write | Upload a file to Slack. | — |