🐰 Membit MCP Server
Membit MCP Server connects your AI systems to live social insights through Membit's API. By leveraging the Model Context Protocol (MCP), this server makes real-time social data—from trending discussion clusters to raw posts—readily available to your AI applications. Whether you're using Claude Desktop, Goose, Cursor, or any MCP-compatible client, this server enriches your model’s context with current social data.
Contents
- Introduction
- Key Features
- Requirements
- Installation Guide
- Client Configuration
- How It Works
- Example Interactions
- FAQ & Troubleshooting
- Credits
- License
Introduction
Membit MCP Server is designed to empower AI agents with timely social context. It translates Membit's REST endpoints into MCP tools, allowing your AI to:
- 🔍 Discover Trending Discussions: Search for and retrieve clusters of social discussions.
- 🕳️ Dive Deeper: Fetch detailed posts and metadata for specific clusters.
- 🧠 Extract Insights: Look up raw posts related to any keyword.
By integrating these capabilities, your AI can better understand and respond to rapidly evolving social narratives.
Key Features
- ⚡️ Real-Time Data: Pull live data from Membit's continuously updated API.
- 🔌 MCP Compatibility: Seamlessly integrates with any client that supports the Model Context Protocol.
- 🚀 Simplicity & Flexibility: A lightweight Python server that uses FastMCP for rapid development.
Requirements
Make sure your system includes:
- A valid Membit API key (get one by registering on Membit)
- Python 3.10 or later (check with
python --version) - An MCP-capable client (e.g., Claude Desktop or Goose)
- Git (if you plan to clone the repository)
Use Without Installation
Make sure you have uv installed:
uvx membit-mcp
Installation Guide
PyPI Package
pip install membit-mcp
Clone from Git
Alternatively, to work from the source:
- Clone the repository:
git clone https://github.com/membit-ai/membit-mcp.git cd membit-mcp
- Install the required dependencies:
pip install -r requirements.txt
- Launch the server:
python membit_mcp.py
Client Configuration
Using Claude Desktop
For Claude Desktop, create or modify the configuration file:
- macOS:
$HOME/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Insert the following JSON snippet (substitute your API key):
{
"mcpServers": {
"membit-mcp": {
"command": "uvx",
"args": ["membit-mcp"],
"env": {
"MEMBIT_API_KEY": "your-api-key"
}
}
}
}
Using Goose
Goose is a lightweight MCP client that can integrate directly with your MCP servers. To use Membit MCP with Goose:
- Install Goose: Follow the installation instructions on the Goose website.
- Add Membit MCP Extension in Goose:
- Copy the following address and paste it in your browser (it'll open Goose automatically):
goose://extension?cmd=uvx&arg=membit-mcp&id=membit&name=Membit%20Real-time%20Data&description=Real-time%20social%20posts%20and%20cluster%20capabilities%20powered%20by%20Membit&env=MEMBIT_API_KEY%3DAPI%20key%20for%20Membit%20real-time%20data%20service - Add your Membit API key in the environment variable.
- Copy the following address and paste it in your browser (it'll open Goose automatically):
- Using the Tools:
Once configured, Goose will display the tools:- membit-clusters-search
- membit-clusters-info
- membit-posts-search
You can now incorporate these tools into your agent workflows within Goose to fetch live social data.
Using Cursor
- Open Cursor’s settings.
- Navigate to Features > MCP Servers.
- Click "+ Add New MCP Server".
- Enter:
- Name:
membit-mcp - Type:
command - Command:
env MEMBIT_API_KEY=your-api-key uvx membit-mcp
Replaceyour-api-keywith your actual Membit API key.
- Name:
How It Works
The server uses the Model Context Protocol to expose three primary tools:
- membit-clusters-search:
Sends a GET request tohttps://api-app.membit.ai/clusters/searchwith a query string and limit. - membit-clusters-info:
Fetches details fromhttps://api-app.membit.ai/clusters/infousing a cluster label. - membit-posts-search:
Searches for raw social posts by keyword viahttps://api-app.membit.ai/posts/search.
Each tool is accessible via MCP, and responses are formatted as human-readable JSON for easy integration.
FAQ & Troubleshooting
Q: The server doesn’t start. What should I do?
A: Ensure you have Python 3.10+ installed and that the MEMBIT_API_KEY is correctly set in your environment.
Q: I don’t see the tools in my MCP client.
A: Try refreshing the server list. Also, check your server logs for any initialization errors.
Q: I’m receiving API errors from Membit.
A: Verify your Membit API key and confirm that your API usage hasn’t exceeded any limits.
Credits
- Membit: For their robust social data API.
- Model Context Protocol: For the standardized framework that makes seamless integration possible.
- Special thanks to the open-source community for their continuous improvements.
Development Guide
Make sure you have uv installed:
uv run poetry install
To run development server, use the following command:
uv run mcp dev membit_mcp.py
To build and publish to PyPI:
uv run poetry build
uv run poetry publish
License
This project is distributed under the MIT License.
Release files for membit-mcp 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| membit_mcp-0.1.8.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| membit_mcp-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / membit_mcp-0.1.8.tar.gz
| Download URL | membit_mcp-0.1.8.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d758e2020af626fc24b0d12cfa38e605f103a38b2bd7c908e40f76924b0ce3d
|
|
BLAKE2b-256 checksum How to use checksums |
08ea280795ea2d7d6a4283faf4213c014de865ccd90103b0d27a872e95e331d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Darwin/22.4.0
|
Release files / membit_mcp-0.1.8-py3-none-any.whl
| Download URL | membit_mcp-0.1.8-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ea0b27b937164c2dff8ad6aa4d27921ac4cd90a538ea4942e3640fbeb0a80aa
|
|
BLAKE2b-256 checksum How to use checksums |
0817781cdb65d0246696599b436182b9cd0fb26728d6abfe711478465aab71de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Darwin/22.4.0
|