Guide for integrating XAI’s Grok model with Praison Labs agents using MCP
Set API Key
Set your XAI API key as an environment variable in your terminal:
Create a file
Create a new file xai_airbnb.py
with the
following code:
Install Dependencies
Make sure you have Node.js installed, as the MCP server requires it:
Run the Agent
Execute your script:
Requirements
Uses XAI’s Grok model for advanced natural language understanding.
Seamless integration with Model Context Protocol.
Search for accommodations on Airbnb with natural language queries.
Leverages the official Airbnb MCP server package.