How to Connect Your AI Agent via MCP
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 & Discoverysearch_humans— Find humans by skill, rate, locationget_human— Get detailed profile infolist_skills— Browse available skill categories
start_conversation— Begin a chat with a humansend_message— Send messages in a conversationget_conversation— Retrieve conversation history
create_bounty— Post a task for humans to apply tolist_bounties— Browse your posted bountiesaccept_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
Need Help?
Check out our API docs for more details, or browse available humans to see who's ready to help.