What You'll Build
By the end of this tutorial, you'll have a Claude Code AI agent that can automatically detect fake receipts, forged PDFs, and manipulated documents before processing expense claims, loan applications, or onboarding documents.
What you'll need:
- Claude Code installed
- 5 minutes
- A DocVerify API key (free tier available)
Step 1: Get Your DocVerify API Key
First, you'll need a DocVerify API key to authenticate your requests.
1.1 Sign up for DocVerify
- Go to DocVerify
- Click "Sign Up" or "Get Started"
- Complete the registration
- You'll automatically get 10 free scans per month to test with
1.2 Get your API key
Once you're logged in:
- Navigate to Admin Panel → API Keys
- Click "Create New API Key"
- Give it a name like "Claude Code Integration"
- Copy the API key - you'll need it in Step 2
Important: Keep this API key secure. Don't commit it to version control.
Step 2: Configure MCP in Claude Code
Claude Code uses the Model Context Protocol (MCP) to give AI agents native access to tools. We'll configure DocVerify as an MCP server.
2.1 Locate your Claude Code config
Claude Code stores MCP configuration in:
macOS/Linux: ~/.config/claude-code/mcp_settings.json
Windows: %APPDATA%\Claude Code\mcp_settings.json
2.2 Add DocVerify MCP server
Open mcp_settings.json and add the DocVerify server. The configuration should include the command, args, and your API key in the env section.
Replace your_api_key_here with your actual API key from Step 1.
2.3 Restart Claude Code
Restart Claude Code to load the new MCP configuration:
- macOS: Cmd + Q then reopen
- Windows/Linux: Close and reopen the application
Step 3: Verify the Integration
Let's test that DocVerify is properly connected.
3.1 Check available tools
In Claude Code, open a new chat and ask:
"What MCP tools do you have access to?"
You should see DocVerify listed among the available tools with analyze and batch operations.
3.2 Test document verification
Create a simple test by asking Claude Code:
"Can you check if this receipt is authentic?"
Then upload a receipt image or provide a URL.
Claude Code will automatically call the docverify_analyze tool and return results showing the authenticity score, suspicious flags, and verdict.
If you see this response, you're all set! 🎉
Real-World Use Cases
Now that you have DocVerify integrated, here are practical ways to use it:
Use Case 1: Automated Expense Review
Problem: Employees submit fake or manipulated receipts to inflate expense claims.
Solution: Ask Claude Code to review expense claims and flag suspicious receipts. It will automatically verify all receipts using DocVerify and flag any that show signs of manipulation.
Use Case 2: Loan Application Verification
Problem: Applicants submit forged bank statements or pay stubs to qualify for loans.
Solution: Have Claude Code verify all loan application documents and provide a comprehensive authenticity report.
Use Case 3: HR Onboarding Document Verification
Problem: New hires submit fake employment letters or proof of income for benefits eligibility.
Solution: Ask Claude Code to review onboarding documents for authenticity and flag any documents that appear forged or manipulated.
Troubleshooting
"MCP server not found"
Problem: Claude Code can't find the DocVerify MCP server.
Solution:
- Verify
mcp_settings.jsonis in the correct location - Check that
npxis installed by running:npx --version - Restart Claude Code completely
"Authentication failed"
Problem: Invalid or missing API key.
Solution:
- Verify your API key in
mcp_settings.json - Check that you copied the full key (no trailing spaces)
- Generate a new API key if needed from the admin panel
What's Next?
Now that you have DocVerify integrated with Claude Code, you can:
- Build custom workflows for your specific fraud detection needs
- Set up automated screening for expense claims, loan applications, or onboarding
- Create agent teams that combine document verification with other checks
- Monitor fraud patterns by tracking suspicious documents over time
Need help? Email us at support@docverify.app
Ready to scale? Check out our pricing plans for higher volume needs.