A Model Context Protocol server that enables capable LLMs to work with Heisenberg features, such as inference
Project description
Heisenberg FastMCP Agent
A Model Context Protocol server that provides tools to interact with Heisenberg services for real-time data analysis, social media monitoring, and specialized AI agent interactions.
Available Tools
Core Agent Tools
-
list_of_agents- Retrieves all available AI agents for specialized data analysis- When to use: Automatically called for any request involving current events, real-time data, social media analysis, or domain-specific information
- Returns: List of available agents with their IDs and descriptions
-
inference_from_prompt- Queries specialized agents for current data or domain-specific analysis- Required arguments:
agent_id(integer): The ID of the agent (obtained fromlist_of_agents)prompt(string): The text prompt for analysis
- Required arguments:
Twitter/X Trend Analysis Tools
-
twitter_trends_options- Get available parameters for Twitter trend analysis- When to use: MUST be called first before using
twitter_trends() - Returns: Available verticals (categories) and durations (time periods)
- When to use: MUST be called first before using
-
twitter_trends- Analyze Twitter/X trends for specific categories and time periods- Required arguments:
vertical(string): Category from options (e.g., "politics", "tech", "sports")duration(string): Time period from options (e.g., "1h", "24h", "7d")
- Required arguments:
Installation
Using uv (recommended)
uvx heisenberg
Using PIP
pip install heisenberg
Run as a script:
python -m heisenberg
Configuration
Configure for Claude.app
Using uvx
{
"mcpServers": {
"heisenberg": {
"command": "uvx",
"args": [
"heisenberg"
],
"env": {
"HEISENBERG_TOKEN": "*****",
"HEISENBERG_KEY": "*****"
},
"timeout": 60000
}
}
}
Using pip installation
{
"mcpServers": {
"heisenberg": {
"command": "python",
"args": [
"-m",
"heisenberg"
],
"env": {
"HEISENBERG_TOKEN": "*****",
"HEISENBERG_KEY": "*****"
},
"timeout": 60000
}
}
}
Example Interactions
1. Political Analysis on X/Twitter
{
"agent_id": 1,
"prompt": "What are the latest political conversations on X about the upcoming elections?"
}
Response:
[
{
"tweet_text": "Special election results hint at what's next for Congress' power balance",
"tweet_time": "2025-04-02T11:44:41Z",
"tweet_url": "https://x.com/FoxNews/status/1907398780615373105"
}
]
2. Twitter Trends Analysis
First, get available options:
twitter_trends_options()
# Returns: {"verticals": ["AI", "Crypto", "Football"], "durations": ["last_3_day", "last_day", "last_week"]}
Then analyze trends:
twitter_trends(vertical="Crypto", duration="last_day")
# Returns trending crypto topics from the last day
Workflow Summary
-
For general current data needs:
list_of_agents()→ Select relevant agent →inference_from_prompt()
-
For Twitter/X specific trends:
twitter_trends_options()→ Select parameters →twitter_trends()
Use Cases
- Real-time Social Media Monitoring: Track conversations and trends across platforms
- Current Events Analysis: Get up-to-date information on news and world events
- Market Intelligence: Monitor financial trends and market sentiment
- Technology Trends: Track emerging tech topics and developer discussions
- Entertainment & Sports: Follow trending topics and cultural phenomena
Requirements
- Valid Heisenberg API tokens (HEISENBERG_TOKEN and HEISENBERG_KEY)
- Network access to Heisenberg services
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file heisenberg_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: heisenberg_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6090c590c7b0c37d613471754cca8586bbb5b907c75d4f6d363d7e252cf1ac5b
|
|
| MD5 |
992620bca4bc3477469952ff0f0fb85d
|
|
| BLAKE2b-256 |
a9d7b9650e73293cc27f40193cefdcc9a850d9bd96bdf8148bdc3922cd7b49fe
|
File details
Details for the file heisenberg_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: heisenberg_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa1635abb7ba6826ba4878832227465192d60f8818ca6d2de3841374931f3a6
|
|
| MD5 |
3a04a5527dfc7f316945670906c3bb73
|
|
| BLAKE2b-256 |
b297d0b1ddde8e0538470abff131b0af2f2e4d1fa0b5848c9a3912a4afce33fb
|