Quickstart

From zero to live PumpFun data in under 5 minutes.

Before you start

Step 1: Install Node.js

Go to nodejs.org, download, install.

Open your terminal and type:

node --version

If you see a version number, you're ready.

Step 2: Get a Solana wallet

Download Phantom at phantom.app.

Create a new wallet, save your seed phrase somewhere safe.

Fund it with SOL from an exchange.

Your first bot

Data only — no swaps yet. Safe to run.

mkdir my-pump-bot && cd my-pump-bot && npm init -y && npm install getpumpagent

Create index.js and paste:

const { PumpAgent } = require('getpumpagent')
const agent = new PumpAgent()

async function watchTokens() {
  console.log('Watching PumpFun launches...')
  setInterval(async () => {
    const { tokens } = await agent.tokens.new()
    const newest = tokens[0]
    console.log(`New token: ${newest.name} (${newest.symbol})`)
    console.log(`Mint: ${newest.mint}`)
    console.log('---')
  }, 10000)
}

watchTokens()

Then run it:

node index.js

You should see live PumpFun tokens printing every 10 seconds.

Add swapping

Ready to trade? Add this to your bot:

// Add your wallet details
const WALLET_PUBLIC_KEY = 'your-public-key-here'

// Uncomment to execute swaps (uses real SOL)
// const tx = await agent.swap({
//   inputMint: 'So11111111111111111111111111111111111111112',
//   outputMint: newest.mint,
//   amount: 100000000, // 0.1 SOL in lamports
//   userWallet: WALLET_PUBLIC_KEY
// })
// console.log('Transaction ready:', tx.transaction)
Remove the // comments to go live. This uses real SOL. Start with a small amount like 0.01 SOL to test.

For AI agents

Using Cursor or Claude? Skip all of the above.

Add this to your Cursor or Claude Desktop config:

{
  "mcpServers": {
    "pumpagent": {
      "command": "npx",
      "args": ["getpumpagent"]
    }
  }
}

Then just ask your AI:

What are the newest PumpFun tokens?
Build me a swap for 0.1 SOL

Done. No code required.

Next steps

Questions? Open a GitHub issue — we respond fast.