Connect your data
Connect Your Data with Ref
Copy page
Learn how to connect your documentation and code repositories to your agents using Ref
Ref provides a simple and focused solution for connecting your documentation and code repositories to your agents. With support for GitHub repositories, PDFs, and Markdown files, Ref is perfect for teams that need straightforward documentation access.
Supported data sources
With Ref you can connect:
- Code Repositories: GitHub Repositories
- Documents: PDF files
- Documentation: Markdown files
Getting started
Step 1: Create an account
- Sign up for Ref
- Complete the account registration process
Step 2: Upload your resources
- Log in to your Ref dashboard
- Navigate to the Resources page
- Upload your PDFs, Markdown files, or connect your GitHub repositories
- Wait for Ref to process and index your content
Step 3: Get your MCP server URL
- Navigate to the Install MCP page
- Copy the MCP server URL (it will start with
https://api.ref.tools/mcp?apiKey=ref-)
Step 4: Register the MCP server
Register the Ref MCP server as a tool in your agent configuration. Replace <your-api-key> with your actual API key from Step 3.
Using TypeScript SDK:
Using Visual Builder:
- Go to the MCP Servers tab in the Visual Builder
- Click "New MCP server"
- Select "Custom Server"
- Enter:
- Name:
Ref Documentation - URL:
https://api.ref.tools/mcp?apiKey=ref-<your-api-key>(replace with your API key) - Transport Type:
Streamable HTTP
- Name:
- Save the server
- Add it to your agent by dragging it onto your agent canvas