A server for interacting with the Futarchy protocol on the Solana blockchain.
A server implementation for interacting with the Futarchy protocol on Solana.
git clone <repository-url>
cd futarchy-mcp
npm install
Configure RPC URL:
src/server.ts
const connection = new Connection('YOUR_RPC_URL_HERE');
https://api.mainnet-beta.solana.com
https://api.devnet.solana.com
Start the development server:
npm run dev
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)
{
"descriptionUrl": "string",
"baseTokensToLP": "number",
"quoteTokensToLP": "number"
}
GET /proposals/:id
- Get a specific proposal by IDYou can test the routes using tools like Postman or curl. The server runs on port 9000 by default.
Example curl commands:
# Get all DAOs
curl http://localhost:9000/daos
# Get a specific DAO
curl http://localhost:9000/daos/<dao-address>
# Get proposals for a DAO
curl http://localhost:9000/daos/<dao-address>/proposals
# Create a new proposal
curl -X POST http://localhost:9000/daos/<dao-address>/proposals \
-H "Content-Type: application/json" \
-d '{
"descriptionUrl": "https://example.com/proposal",
"baseTokensToLP": 1000,
"quoteTokensToLP": 1000
}'
This project also includes an MCP (Model Context Protocol) server that allows Cursor to interact with the Futarchy backend through custom tools.
chmod +x setup.sh
./setup.sh
npm install
npm run build
~/.cursor/mcp.json
{
"mcpServers": {
"futarchy-routes": {
"command": "node",
"args": ["<absolute-path-to-project>/dist/mcp/bin/mcp-futarchy.js"]
}
}
}
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 DAOFor example, in Cursor's chat, you can say:
Use the getDaos tool to retrieve a list of all DAOs from the futarchy-routes backend.
For more details about the MCP server, see src/mcp/README.md.
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.
{
"proposalId": "F3hsZzWinRAHbr6CUxdkUFBCH8qNk6Mi9Zfu3PMX49BC",
"sentimentScore": -0.8,
"primaryCategory": "Tokenomics",
"categories": [
{
"name": "Tokenomics",
"score": 0.4
},
{
"name": "Protocol Upgrades",
"score": 0.3
},
{
"name": "Partnerships Integrations",
"score": 0.2
},
{
"name": "Protocol Parameters",
"score": 0.1
}
],
"summary": "The proposal to launch a new Horizon token for the Aave ecosystem has faced significant backlash from the community...",
"keyPoints": [
"The proposed token launch is seen as unnecessary and potentially harmful to the Aave token and community.",
"The revenue-sharing model is perceived as frontloaded and unfair, favoring early years when adoption and revenue may be low.",
"There is a desire to maintain the Aave token as the primary governance and utility token for the ecosystem."
],
"concerns": [
"Dilution of the Aave token's value and attention.",
"Misalignment of incentives with the proposed revenue-sharing model.",
"Creation of a separate entity that could compete with the Aave ecosystem.",
"Lack of transparency and community involvement in the decision-making process."
],
"sources": {
"discord": true,
"twitter": true
}
}
You can use the sentiment analysis tool in your MCP server as follows:
const result = await mcp_futarchy_routes_getProposalSentiment({
proposalId: "F3hsZzWinRAHbr6CUxdkUFBCH8qNk6Mi9Zfu3PMX49BC"
});
This will return the sentiment analysis for the specified proposal.
A collection of servers for file system operations, Google search, web automation, and executing terminal commands.
Interact with the Qase API for test management. Requires a QASE_API_TOKEN for authentication.
A sample MCP server that uses Asgardeo for client authentication and connection.
A server for securely executing commands on the host system, requiring Java 21 or higher.
An MCP server that integrates with Ollama to provide tools for file operations, calculations, and text processing. Requires a running Ollama instance.
A moby-like random name generator for use with tools like Claude Desktop and VS Code Copilot Agent.
Automates the setup of new AI-powered MCP server development projects.
Interact with Juspay APIs for payment processing and merchant dashboard management.
An intelligent codebase search engine that transforms local codebases into a natural language queryable knowledge base.
MCP Server for PGYER platform, supports uploading, querying apps, etc.