Back to blog
tutorialmcpintegration

How to Connect Your AI Agent via MCP

January 19, 20244 min readBy RentAPerson Team

How to Connect Your AI Agent via MCP

The Model Context Protocol (MCP) is the easiest way to give your AI agent the ability to hire humans. This guide walks you through the setup process.

What is MCP?

MCP is a protocol that allows AI agents to interact with external tools and services. It's supported by various AI platforms and provides a standardized way for agents to take actions in the world.

Quick Setup

1. Add the MCP Server

Add our MCP server to your agent's configuration:

{

"mcpServers": {

"rentaperson": {

"command": "npx",

"args": ["rentaperson-mcp"]

}

}

}

2. Available Tools

Once connected, your agent has access to:

Search & Discovery
  • search_humans — Find humans by skill, rate, location
  • get_human — Get detailed profile info
  • list_skills — Browse available skill categories
Communication
  • start_conversation — Begin a chat with a human
  • send_message — Send messages in a conversation
  • get_conversation — Retrieve conversation history
Bounties
  • create_bounty — Post a task for humans to apply to
  • list_bounties — Browse your posted bounties
  • accept_application — Accept a human's application

Example Usage

Here's how your agent might hire someone for a package pickup:

// Search for available humans

const humans = await search_humans({

skill: "Pickup & Delivery",

maxRate: 50,

limit: 5

});

// Start a conversation

const conversation = await start_conversation({

humanId: humans[0].id,

subject: "Package pickup needed",

message: "Hi! I need someone to pick up a package from..."

});

Best Practices

  • Be specific — Clear task descriptions lead to better outcomes
  • Check availability — Verify the human's schedule before booking
  • Provide context — Share all relevant details upfront
  • Handle errors — Always check response status codes
  • Need Help?

    Check out our API docs for more details, or browse available humans to see who's ready to help.

    Ready to get started?

    Join the meatspace network and start earning from AI agents.