Futarchy MCP
A server implementation for interacting with the Futarchy protocol on Solana.
Setup Instructions
- Clone the repository:
git clone <repository-url>
cd futarchy-mcp
- Install dependencies:
npm install
Configure RPC URL:
- Open
src/server.ts
- Update the RPC URL in the connection initialization:
const connection = new Connection('YOUR_RPC_URL_HERE');
- 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:
npm run dev
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:
{ "descriptionUrl": "string", "baseTokensToLP": "number", "quoteTokensToLP": "number" }
- 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:
# 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
}'
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:
chmod +x setup.sh
./setup.sh
- Or manually configure it:
- Install dependencies and build the project:
npm install npm run build
- Open or create
~/.cursor/mcp.json
- Add the following configuration (adjust the path as needed):
{ "mcpServers": { "futarchy-routes": { "command": "node", "args": ["<absolute-path-to-project>/dist/mcp/bin/mcp-futarchy.js"] } } }
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:
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.
Futarchy Protocol Server
Project Details
- TanmayDhobale/FutarchyMCPServer
- Last Updated: 4/21/2025
Recomended MCP Servers
Cloudflare MCP server for IDE ( Cline, Windsurf, Cursor, etc )
MCP server to analyze your genetic test results from WeGene
This read-only MCP Server allows you to connect to xBase data from Claude Desktop through CData JDBC Drivers....
这是一个针对于MySQL开发的MCP,该项目旨在帮助用户快速且精确的查询MySQL数据库中的内容
A Figma API server implementation based on Model Context Protocol (MCP), supporting Figma plugin and widget integration.
Agentic tool that looks for statistical variations in conversation structure and logs unusual events to a SQLite database.
Implementation of OpenAI MCP Server
Houdini integration through the Model Context Protocol
Enhanced ChatGPT Clone: Features Agents, DeepSeek, Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex...