Allora MCP Server
allora-network
README
Allora MCP Server
This is a Model Context Protocol (MCP) server implementation for fetching machine learning inferences from the Allora Network, providing access to Allora's prediction markets data through the Model Context Protocol.
Overview
The Allora MCP server allows AI systems and applications to access Allora prediction markets data through the standardized Model Context Protocol (MCP), enabling seamless integration of prediction market data into AI workflows. This server provides direct access to Allora topics, market predictions, and inference data.
Prerequisites
- Node.js 18 or higher
- An Allora API key (sign up at alloralabs.com)
Setup
- Clone the repository
git clone https://github.com/your-username/allora-mcp.git
cd allora-mcp
- Install dependencies
npm install
- Set up environment variables
Create a .env file in the project root (or copy from .env.example):
PORT=3001
ALLORA_API_KEY=your_api_key
Development
npm run dev
Building
npm run build
Running
npm start
Docker
Building the Docker Image
docker build -t allora-mcp .
Running with Docker
# Run the container
docker run -p 3001:3001 -e PORT=3001 -e ALLORA_API_KEY=your_api_key allora-mcp
# Or with environment variables in a file
docker run -p 3001:3001 --env-file .env allora-mcp
Docker Compose (optional)
Create a docker-compose.yml file:
version: '3'
services:
allora-mcp:
build: .
ports:
- "3001:3001"
environment:
- PORT=3001
- ALLORA_API_KEY=your_api_key
Then run:
docker-compose up
API Usage
Once the server is running, you can interact with it using any MCP client. The server exposes the following endpoints:
GET /sse- SSE connection endpoint for MCP communicationsPOST /messages- Message endpoint for MCP communications
Available Tools
| Tool Name | Description | Parameters |
|---|---|---|
list_all_topics |
Fetch a list of all Allora topics | None |
get_inference_by_topic_id |
Fetch inference data for a specific topic | topicID: number |
Example Usage with Claude
When connected to Claude or other MCP-compatible AI systems, you can access Allora data with:
What topics are available in Allora?
Or get specific inference data:
What is the current prediction for BTC price in 8 hours?
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
MATLAB MCP Server
Integrates MATLAB with AI to execute code, generate scripts from natural language, and access MATLAB documentation seamlessly.
Macrostrat MCP Server
Enables Claude to query comprehensive geologic data from the Macrostrat API, including geologic units, columns, minerals, and timescales through natural language.
MCP Word Counter
A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.