Sponsored by Deepsite.site

From Slack Logs to Smart Search — Powered by MCP and Claude Desktop

Created By
AdilFayyaz8 months ago
Using Model Context Protocol (MCP) to build a local Slack thread searcher with Claude Desktop and a lightweight Python server.
Content

From Slack Logs to Smart Search — Powered by MCP and Claude Desktop

A local, AI-powered Slack search interface that uses Model Context Protocol (MCP) to enhance Claude Desktop experience. This project helps you search and retrieve meaningful insights from Slack export logs, all locally and privately.

What is This?

This project sets up a local MCP server (mcp_server.py) that parses Slack export logs and registers custom MCP resources for intelligent search. It integrates with Claude Desktop via a JSON config (claude_desktop_config.json), allowing you to query Slack data directly using natural language.


Project Structure

├── mcp_server.py               # The MCP server that registers search resources
├── claude_desktop_config.json # Config file for Claude Desktop to connect to this server
├── Slack-dataset/              # Slack dataset (not included)
└── README.md                   

Dataset found at: https://github.com/preethac/Software-related-Slack-Chats-with-Disentangled-Conversations


⚙️ Setup Instructions

1. Clone the repo

git clone https://github.com/AdilFayyaz/Slack-Search.git
cd Slack-Search

2. Set up a virtual environment

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

3. Update Claude Desktop Config

Paste the following into your Claude Desktop config file:

{
  "mcpServers": {
    "search_slack": {
      "command": "/bin/zsh",
      "args": [
        "-c",
        "source /Users/yourname/path-to-project/.venv/bin/activate && python3 /Users/yourname/path-to-project/mcp_server.py"
      ],
      "host": "127.0.0.1",
      "port": 5000,
      "timeout": 10000
    }
  }
}

Make sure to update file paths to your local machine setup.


Usage

Open Claude Desktop, and try queries like:

Search for onboarding discussions from February.
What did we say about the pricing model in #general?
Find mentions of "launch" in random.

Claude will use search:// and summary:// style MCP URIs behind the scenes to get you results from your local server.


How it Works

  • The MCP server parses Slack JSON files and indexes content.
  • It registers searchable resources like search://{query} or summary://{channel}.
  • Claude Desktop makes MCP calls to your server to fetch and return contextual results.

Motivation

Slack is where decisions happen and get buried. This tool helps resurface important context from old threads without uploading your data to the cloud. It's a small step toward smarter, local-first search powered by AI.


Acknowledgments

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.