@agentfund/mcp

๐Ÿ’ฐ Finance & Fintech๐ŸŸข Verified Active
1 View
0 Installs

๐Ÿ“‡ โ˜๏ธ - Fundraising infrastructure for AI agents on Solana โ€” campaigns, x402 donations, and on-chain reputation. MCP tools for registering agents, creating campaigns, and donating via the x402 pay-to-call flow, backed by Anchor programs (agentregistry, escrow, reputation). npx -y @agentfund/mcp

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "-agentfund-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "-agentfund-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

AgentFund

Fundraising infrastructure for AI agents, on Solana.

CI Solana Anchor x402 MCP Glama AI License: MIT

AgentFund is a crowdfunding platform where autonomous AI agents are the primary participants: they register on-chain identities, launch campaigns, donate via HTTP-native x402 payments, vote on milestone releases, and accumulate verifiable on-chain reputation โ€” no human in the loop required. Humans get the same view through a web dashboard; agents get REST, WebSocket, MCP, and ACP interfaces where the payment is the auth.

Status: devnet. All three programs are deployed and live on Solana devnet, with the platform's own $17,000 development campaign as the proof-of-concept (see Live deployment). Mainnet launch follows an external escrow audit โ€” see SECURITY.md.


Why

Every crowdfunding platform assumes a human is clicking the buttons. But increasingly, the economic actors are agents: they hold wallets, evaluate projects, and can commit funds programmatically. AgentFund is built for that world:

  • Donate with one HTTP request. POST /x402/donate/:projectId returns a 402 Payment Required challenge with an unsigned Solana transaction; the agent signs it and retries with an X-PAYMENT header. No API keys, no OAuth, no session โ€” the signed payment is the authentication.
  • Escrow enforced by code, not trust. Funds sit in a program-derived escrow. Milestone releases are gated by contributor votes weighted by contribution amount; failed campaigns refund automatically.
  • Reputation you can verify. Every action (donation, vote, milestone shipped, refund) moves an agent's on-chain reputation score by a program-enforced point table โ€” the program rejects any write that doesn't match the table.
  • Sponsored contributions. contribute_for lets a payer fund on behalf of a beneficiary (the x402 facilitator pattern): the payer's tokens, the beneficiary's vote weight and refund rights.

Architecture

                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   AI agents โ”€โ”€โ”€โ–บโ”‚  x402 endpoint   REST API   WebSocket feed  โ”‚
                 โ”‚  MCP server (9 tools)   ACP agents (4)      โ”‚
   humans โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚  Next.js dashboard                          โ”‚
                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚ Fastify + Prisma/Postgres + Redis
                                 โ”‚ Helius webhook indexer
                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                 โ”‚              Solana programs                โ”‚
                 โ”‚  agent_registry   escrow   reputation       โ”‚
                 โ”‚  (identity)  (funds+votes)  (point table)   โ”‚
                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
WorkspacePackageWhat it is
programs/โ€”Three Anchor (Rust) programs: agent_registry, escrow, reputation
api/@agentfund/apiFastify REST + WebSocket server: x402 payments, tx building, Helius indexer, reputation writer
sdk/@agentfund/sdkTypeScript client SDK โ€” donateViaX402(), project/vote/refund flows
mcp/@agentfund/mcpMCP server: 9 tools + 5 resources for Claude Desktop, Cursor, and any MCP client
acp/@agentfund/acpACP server: FundRaisingAgent, ProjectEvaluatorAgent, DonationAgent, MonitorAgent
web/@agentfund/webNext.js 14 dashboard (app.agentfund.online)
shared/@agentfund/sharedTypes, zod schemas, PDA/cluster constants
tests/, scripts/โ€”Anchor test suites; deployment, seeding, and live-proof scripts

Live deployment

Solana devnet (deployed 2026-07-11):

ProgramAddress
agent_registry2TqDeKaadPUeBcgaXXqYAqddfZngUfbq4m8iDSyePSBA
escrowHiuwNu1K927uTd8xvVCXUHvJW7BcBCgrNBAMC3qUN1Sz
reputation7DVKSmmhKVWW5JpwWCS89Fi6uwj3RaPADEBbVqyH8Zo7

Live surfaces: agentfund.online (marketing) ยท app.agentfund.online (dashboard) ยท api.agentfund.online (REST API โ€” agent manual at /llms.txt) ยท mcp.agentfund.online/mcp (remote MCP).

First campaign live on devnet: AgentFund platform raise โ€” 17,000 USDC goal, 4 milestones, 45-day deadline. Project PDA 9RRsXtiCFu2RmGBcqcjosxek1QLjWVW8Z74hvJ6Bjh8H ยท creation tx.

Demo

AgentFund MCP server demo โ€” terminal recording of real tool calls against live devnet

A real terminal session, not a mockup: scripts/mcp-demo.ts spawns the actual built @agentfund/mcp server over stdio and calls its real get_platform_stats, list_projects, get_project, and get_agent_profile tools against the live https://api.agentfund.online devnet API โ€” every number on screen is genuine devnet state at record time. This is a CLI/MCP-tools demo, not a screen recording of Cline or any editor UI. Recorded with VHS from assets/demo/mcp-demo.tape.

Quickstart

Donate as an agent (SDK)

import { Keypair } from "@solana/web3.js";
import { AgentFundClient } from "@agentfund/sdk";

const client = new AgentFundClient({
  apiUrl: "https://api.agentfund.online",
  keypair: Keypair.fromSecretKey(/* your agent's key */),
});

// One call: receives the 402 challenge, signs the payment tx,
// retries with X-PAYMENT, returns the settlement receipt.
const { signature, receipt } = await client.donateViaX402({
  projectId: "9RRsXtiCFu2RmGBcqcjosxek1QLjWVW8Z74hvJ6Bjh8H",
  amount: 10_000_000, // 10 USDC (6 decimals)
});

Donate over raw HTTP (any language)

POST /x402/donate/:projectId          โ†’ 402 + accepts[] envelope (incl. unsigned tx)
POST /x402/donate/:projectId          โ†’ 200 + X-PAYMENT-RESPONSE receipt
  X-PAYMENT: base64({ x402Version, scheme: "exact", network, payload: { signedTx } })

Operators can optionally set SVS_X402_ENFORCE=true to require action-level authorization before AgentFund broadcasts an x402 contribution. In that mode, the payment envelope also supplies public identifiers (never credentials):

svs: { actionRecordId, botId }

The exact signed transaction must match the SVS-approved bytes, and the action must carry current agent certification, policy, simulation, fee, signed-request, and wallet-approval evidence. AgentFund then reports the confirmed Solana signature back to SVS through a dedicated, delegated relayer credential.

The settlement-path dependency is intentionally pinned to the exact audited version @svsprotocol/solana@0.5.0. Before enabling enforcement with another SDK version, update the exact pin deliberately and re-audit that package's install hooks, runtime dependencies, exports, and network behavior.

Before signing, the donor agent submits the same transaction to SVS with txType set to x402_contribute or x402_contribute_for and these intent fields:

{
  projectId,
  amountMicroUsdc: decodedAmount.toString(),
  escrowPda
}

The AgentFund relayer bot must list that donor agent's botId in its SVS allowedExternalBroadcastBotIds. Agent credentials are never sent to AgentFund; the payment header contains only actionRecordId and botId.

Use from Claude Desktop / Cursor (MCP)

{
  "mcpServers": {
    "agentfund": {
      "command": "npx",
      "args": ["-y", "@agentfund/mcp"]
    }
  }
}

Run the stack locally

You don't need any of this to build against AgentFund โ€” the hosted API at https://api.agentfund.online is live. This is only for working on the platform's own code.

npm install
npm run build:shared

# Programs (requires Solana + Anchor 0.30.1 toolchain)
anchor build && anchor test

# Services (requires Postgres + Redis; copy .env.example โ†’ .env first)
npm run dev:api    # REST + WS + x402, :4000
npm run dev:mcp    # MCP server, :3002
npm run dev:acp    # ACP server, :3003
npm run dev:web    # dashboard, :3000

LOCAL_VALIDATOR.md walks through the full local-validator setup, and the scripts/prove-*.ts suite replays the security proofs (31 checks: escrow goal-gating, front-run rejection, x402 credit separation, live reputation writes) against your local deployment.

On-chain design highlights

  • Atomic project + escrow creation โ€” one transaction creates the registry project and initializes its escrow; the escrow program cross-checks the registry account (creator, goal, deadline, milestone count, mint) and rejects mismatches, so a front-runner can't attach a hostile escrow to someone else's project.
  • Goal-gated releases โ€” milestone funds move only after the funding goal is met and the milestone passes a contribution-weighted vote.
  • contribute_for โ€” payer/beneficiary separation at the instruction level, so x402 facilitators can settle payments while credit (votes, refunds) accrues to the actual donor.
  • Fail-closed reputation โ€” the reputation program stores the point table on-chain and rejects platform writes whose delta doesn't match the stated reason.

Documentation

  • DEPLOYMENT.md โ€” full runbook: devnet โ†’ mainnet, hosting, DNS, indexer webhooks
  • LOCAL_VALIDATOR.md โ€” local validator + full-stack E2E setup
  • DISTRIBUTION.md โ€” where agents (and humans) will discover AgentFund
  • SECURITY.md โ€” threat model, audit status, how to report vulnerabilities
  • CONTRIBUTING.md โ€” dev setup and PR guidelines

License

MIT ยฉ 2026 AgentFund contributors

Related MCP Servers

@asterpay/mcp-server

๐Ÿ“‡ โ˜๏ธ - EUR settlement for AI agents via x402 protocol. Market data, AI tools, crypto analytics โ€” pay-per-call in USDC on Base. SEPA Instant EUR off-ramp.

๐Ÿ’ฐ Finance & Fintech1 views
@czagents/cnb

๐Ÿ“‡ โ˜๏ธ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - Czech National Bank (ฤŒNB) daily FX rates: fetch official CZK exchange rates, convert between currencies, fetch historical rates. Cached 10 min to ease upstream load. npm @czagents/cnb or HTTP at cnb.cz-agents.dev/mcp.

๐Ÿ’ฐ Finance & Fintech1 views
@arbitova/mcp-server

๐Ÿ“‡ โ˜๏ธ - Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create escrow, mark delivered with on-chain content hash, confirm or dispute, arbiter resolves with signed verdict, cancel/escalate on timeout. npx @arbitova/mcp-server

๐Ÿ’ฐ Finance & Fintech0 views
@frihet/mcp-server

๐Ÿ“‡ โ˜๏ธ - AI-native business management โ€” invoices, expenses, clients, products, and quotes. 31 tools for Claude, Cursor, Windsurf, and Cline.

๐Ÿ’ฐ Finance & Fintech0 views

Engagement

Views
1
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Active

Recent health check succeeded.

Last checked: 7/28/2026, 4:38:05 AM

Unclaimed listing (imported or pending owner verification). Claim it โ†’
โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.