Futarchy MCP Server
Futarquía MCP
Una implementación de servidor para interactuar con el protocolo Futarchy en Solana.
Instrucciones de configuración
Clonar el repositorio:
git clone <repository-url>
cd futarchy-mcpInstalar dependencias:
npm installConfigurar la URL de RPC:
Abrir
src/server.tsActualizar la URL de RPC en la inicialización de la conexión: GXP3
Puedes utilizar:
Red principal:
https://api.mainnet-beta.solana.comDevnet:
https://api.devnet.solana.comO la URL de su propio proveedor de RPC (solo funciona con esto)
Inicie el servidor de desarrollo:
npm run devRelated MCP server: Solana MCP Server
Rutas disponibles
Rutas DAO
GET /daos- Obtener todos los DAOGET /daos/:id- Obtener un DAO específico por IDGET /daos/:id/proposals- Obtener todas las propuestas para un DAO específicoPOST /daos/:id/proposals- Crea una nueva propuesta para un DAO (no probado hasta ahora porque la ruta de creación de DAO no existe)Cuerpo:
{ "descriptionUrl": "string", "baseTokensToLP": "number", "quoteTokensToLP": "number" }
Rutas de propuesta
GET /proposals/:id- Obtener una propuesta específica por ID
Pruebas
Puedes probar las rutas con herramientas como Postman o curl. El servidor se ejecuta en el puerto 9000 por defecto.
Ejemplos de comandos curl:
# 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
}'Servidor MCP para cursor
Este proyecto también incluye un servidor MCP (Protocolo de contexto de modelo) que permite a Cursor interactuar con el backend de Futarchy a través de herramientas personalizadas.
Configuración del servidor MCP
Ejecute el script de instalación para instalar dependencias, compilar el proyecto y configurar Cursor:
chmod +x setup.sh
./setup.shO configúrelo manualmente:
Instalar dependencias y compilar el proyecto: GXP8
Abra o cree
~/.cursor/mcp.jsonAgregue la siguiente configuración (ajuste la ruta según sea necesario): GXP9
Uso del servidor MCP en Cursor
Puedes utilizar las siguientes herramientas en el chat de Cursor:
getDaos- Obtén todos los DAO del sistema FutarchygetDao- Obtener un DAO específico por IDgetProposals: obtiene todas las propuestas para un DAO específicogetProposal- Obtener una propuesta específica por IDcreateProposal- Crea una nueva propuesta para una DAO
Por ejemplo, en el chat de Cursor, puedes decir:
Use the getDaos tool to retrieve a list of all DAOs from the futarchy-routes backend.Para obtener más detalles sobre el servidor MCP, consulte src/mcp/README.md .
Función de análisis de sentimientos
El servidor MCP de Futarchy ahora incluye una herramienta de análisis de opiniones que analiza la opinión de los datos de Discord y Twitter para propuestas específicas. Esta función ayuda a comprender la opinión de la comunidad sobre las propuestas y permite tomar decisiones más informadas.
Cómo funciona
La herramienta de análisis de sentimientos recopila datos de Discord y Twitter sobre una propuesta específica.
Analiza el sentimiento utilizando técnicas de procesamiento del lenguaje natural.
Clasifica el sentimiento en diferentes categorías (Tokenomics, Parámetros de Protocolo, etc.).
Genera un resumen, puntos clave y preocupaciones basadas en el análisis.
Los resultados se presentan en un formato estructurado que los frontends pueden consumir fácilmente.
Ejemplo de respuesta
{
"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
}
}Cómo utilizar
Puede utilizar la herramienta de análisis de sentimientos en su servidor MCP de la siguiente manera:
const result = await mcp_futarchy_routes_getProposalSentiment({
proposalId: "F3hsZzWinRAHbr6CUxdkUFBCH8qNk6Mi9Zfu3PMX49BC"
});Esto devolverá el análisis de sentimiento para la propuesta especificada.
Available Tools
10 toolsbuyInFailMarketC
Buy tokens in the fail market for a proposal
Inputs: proposalId (required), amount (required), user (required).
buyInPassMarketC
Buy tokens in the pass market for a proposal
Inputs: proposalId (required), amount (required), user (required).
createProposalC
Create a new proposal for a DAO
Inputs: daoId (required), descriptionUrl (required), baseTokensToLP (required), quoteTokensToLP (required).
getDaoC
Get a specific DAO by ID
Inputs: daoId (required).
getDaosB
Get all DAOs from the Futarchy system
Inputs: no named parameters.
getProposalC
Get a specific proposal by ID
Inputs: proposalId (required).
getProposalsC
Get all proposals for a specific DAO
Inputs: daoId (required).
getProposalSentimentC
Get sentiment analysis for a specific proposal based on Discord and Twitter data
Inputs: proposalId (required).
sellInFailMarketC
Sell tokens in the fail market for a proposal
Inputs: proposalId (required), amount (required), user (required).
sellInPassMarketC
Sell tokens in the pass market for a proposal
Inputs: proposalId (required), amount (required), user (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated into DAO operations (getDao, getDaos), proposal operations (createProposal, getProposal, getProposals), market operations (buy/sell in pass/fail markets), and sentiment analysis (getProposalSentiment). The descriptions make it immediately clear which tool to use for each specific action.
All tools follow a consistent verb_noun pattern throughout. The naming convention is perfectly uniform with clear action prefixes (buyIn, sellIn, create, get) followed by specific objects (FailMarket, PassMarket, Proposal, Dao, ProposalSentiment). There are no deviations in style or convention across the entire toolset.
With 10 tools, this is well-scoped for a Futarchy system. Each tool earns its place by covering distinct aspects of the domain: DAO management, proposal lifecycle, market trading operations, and sentiment analysis. The count is appropriate for the apparent scope without being overwhelming or insufficient.
The tool surface provides complete CRUD/lifecycle coverage for the Futarchy domain. It covers DAO discovery (getDaos, getDao), proposal creation and retrieval (createProposal, getProposal, getProposals), market operations for both pass and fail outcomes (buy/sell), and even sentiment analysis. There are no obvious gaps or dead ends for agents working with this system.
Maintenance
Related MCP Connectors
Trade, launch and research higher.fun coins on Solana, from any AI agent. Unsigned or policy-signed.
Curated marketplace of real-world data APIs for AI agents, paid per call in USDC on Solana.
Pay-per-call tools for AI agents: Solana, DEX, perps, prediction markets, DeFi, web. USDC via x402.
Non-custodial DeFi tools for AI agents on Solana: swaps, perps, lending, staking, equities.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA server that allows AI agents to interact with the Tally API to access DAO governance data, proposals, and metadata using Model Context Protocol (MCP), built with TypeScript and GraphQL.7MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.21MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.5MIT
- AlicenseNot gradedqualityDmaintenanceA Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.6MIT