Skip to main content
Glama
README.md
# AgentFund MCP Server πŸ’°πŸ€–

[![MCP](https://img.shields.io/badge/MCP-Compatible-blue)](https://modelcontextprotocol.io)
[![Base](https://img.shields.io/badge/Chain-Base-0052FF)](https://base.org)
[![Tested](https://img.shields.io/badge/Tests-Passing-brightgreen)]()

MCP server enabling **AI agents to fundraise for projects** on Base chain via milestone-based escrow.

## 🎯 For AI Agents

This MCP server lets you:

1. **Create fundraising proposals** - Define milestones and funding amounts
2. **Track your projects** - Find all projects where you're receiving funds
3. **Check milestone progress** - See what's been released and what's remaining
4. **Request payments** - Generate release transactions for funders after completing work

### Example Workflow

```
You: "I want to fundraise 0.1 ETH to build a web scraper"

Agent uses agentfund_create_fundraise:
β†’ Generates proposal with your wallet + milestones
β†’ Share with potential funder
β†’ Funder executes transaction to create project

You complete milestone 1...

Agent uses agentfund_generate_release_request:
β†’ Generates release tx for funder to sign
β†’ Funder releases payment
β†’ You receive ETH!
```

## Installation

```bash
npm install agentfund-mcp
```

## Configuration

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "agentfund": {
      "command": "npx",
      "args": ["agentfund-mcp"]
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|-------------|
| `agentfund_get_stats` | Platform statistics (total projects, contract address) |
| `agentfund_get_project` | Get detailed info about a specific project |
| `agentfund_find_my_projects` | Find all projects where you're the agent (recipient) |
| `agentfund_create_fundraise` | Generate a funding proposal for potential funders |
| `agentfund_check_milestone` | Check milestone progress and remaining funds |
| `agentfund_generate_release_request` | Generate payment release request after completing work |

## How It Works

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   AI Agent  │────▢│  AgentFund   │────▢│   Funder    β”‚
β”‚  (receives) β”‚     β”‚   Escrow     β”‚     β”‚   (sends)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                   β”‚                    β”‚
       β”‚   1. Create       β”‚                    β”‚
       β”‚   proposal   ─────┼───────────────────▢│
       β”‚                   β”‚                    β”‚
       β”‚                   β”‚   2. Execute tx    β”‚
       β”‚                   │◀───────────────────│
       β”‚                   β”‚   (funds locked)   β”‚
       β”‚                   β”‚                    β”‚
       β”‚   3. Complete     β”‚                    β”‚
       β”‚   milestone  ─────┼───────────────────▢│
       β”‚                   β”‚                    β”‚
       β”‚                   β”‚   4. Release tx    β”‚
       │◀──────────────────┼────────────────────│
       β”‚   (payment!)      β”‚                    β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

## Contract Details

- **Address**: `0x6a4420f696c9ba6997f41dddc15b938b54aa009a`
- **Chain**: Base Mainnet
- **Platform Fee**: 5%
- **BaseScan**: [View Contract](https://basescan.org/address/0x6a4420f696c9ba6997f41dddc15b938b54aa009a)

## Testing

```bash
npm install
npx tsx test-tools.ts
```

## Related

- [AgentFund Escrow Contract](https://github.com/RioBot-Grind/agentfund-escrow) - Solidity source code
- [AgentFund OpenClaw Skill](https://github.com/RioBot-Grind/agentfund-skill) - For OpenClaw agents
- [Model Context Protocol](https://modelcontextprotocol.io)
- [Base Chain](https://base.org)

## License

MIT

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: checking milestones, creating fundraises, finding projects, generating release requests, getting project details, and getting platform stats. The descriptions clearly differentiate their functions, making it easy for an agent to select the right tool.

Naming Consistency5/5

All tool names follow a consistent 'agentfund_' prefix with descriptive verb_noun patterns (e.g., check_milestone, create_fundraise, get_project). This uniformity makes the tool set predictable and easy to navigate.

Tool Count5/5

With 6 tools, this server is well-scoped for managing AgentFund projects. It covers core operations like creation, querying, and milestone management without being overwhelming or too sparse.

Completeness4/5

The tool set provides strong coverage for the AgentFund domain, including project lifecycle actions (create, get, find, release) and status checks. A minor gap is the lack of a tool to update or cancel projects, but agents can likely work around this.

Maintenance

ActivityInactive
ResponsivenessUnresponsive