Integrations
Supports interacting with the Futarchy MCP server via curl commands for accessing DAO and proposal data, including creating new proposals.
Collects data for sentiment analysis about proposals, enabling analysis of community discussions to understand reactions to proposals within the Futarchy protocol.
Allows testing the Futarchy MCP server routes using Postman to access DAO and proposal information from the Futarchy protocol.
Futarchy MCP
A server implementation for interacting with the Futarchy protocol on Solana.
Setup Instructions
- Clone the repository:
- Install dependencies:
- Configure RPC URL:
- Open
src/server.ts
- Update the RPC URL in the connection initialization:
Copy- You can use:
- Mainnet:
https://api.mainnet-beta.solana.com
- Devnet:
https://api.devnet.solana.com
- Or your own RPC provider URL (works only with this)
- Mainnet:
- Open
- Start the development server:
Available Routes
DAO Routes
GET /daos
- Get all DAOsGET /daos/:id
- Get a specific DAO by IDGET /daos/:id/proposals
- Get all proposals for a specific DAOPOST /daos/:id/proposals
- Create a new proposal for a DAO (not tested as of now because dao creation route does not exist)- Body:Copy
- Body:
Proposal Routes
GET /proposals/:id
- Get a specific proposal by ID
Testing
You can test the routes using tools like Postman or curl. The server runs on port 9000 by default.
Example curl commands:
MCP Server for Cursor
This project also includes an MCP (Model Context Protocol) server that allows Cursor to interact with the Futarchy backend through custom tools.
Setting up the MCP Server
- Run the setup script to install dependencies, build the project, and configure Cursor:
- Or manually configure it:
- Install dependencies and build the project:
Copy- Open or create
~/.cursor/mcp.json
- Add the following configuration (adjust the path as needed):
Copy
Using the MCP Server in Cursor
You can use the following tools in Cursor's chat:
getDaos
- Get all DAOs from the Futarchy systemgetDao
- Get a specific DAO by IDgetProposals
- Get all proposals for a specific DAOgetProposal
- Get a specific proposal by IDcreateProposal
- Create a new proposal for a DAO
For example, in Cursor's chat, you can say:
For more details about the MCP server, see src/mcp/README.md.
Sentiment Analysis Feature
The Futarchy MCP Server now includes a sentiment analysis tool that analyzes sentiment from Discord and Twitter data for specific proposals. This feature helps in understanding community sentiment about proposals and can be used to make more informed decisions.
How It Works
- The sentiment analysis tool collects data from Discord and Twitter about a specific proposal.
- It analyzes the sentiment using natural language processing techniques.
- It categorizes the sentiment into different categories (Tokenomics, Protocol Parameters, etc.).
- It generates a summary, key points, and concerns based on the analysis.
- The results are presented in a structured format that can be easily consumed by frontends.
Example Response
How to Use
You can use the sentiment analysis tool in your MCP server as follows:
This will return the sentiment analysis for the specified proposal.
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A server implementation that enables interaction with the Futarchy protocol on Solana, allowing users to manage DAOs and proposals through both API endpoints and Cursor's chat interface.