Troubleshooting
Common issues and solutions for the Nexus MCP server
Common issues and solutions when using the Nexus MCP server.
Initialization Issues
"dbt_project.yml not found"
Problem: The server cannot find your dbt project.
Solutions:
- Ensure you're running from a dbt project directory
- Check that
dbt_project.ymlexists in the current directory - Specify
--project-dirwith the absolute path to your project - Verify the path in
.cursor/mcp.jsonis correct
"manifest.json not found"
Problem: The server cannot find the dbt manifest.
Solutions:
- Run
dbt compileordbt runto generate the manifest - Check that the
target/directory exists - Verify the manifest path:
target/manifest.json - Ensure you have run dbt at least once in the project
"Profile not found"
Problem: The server cannot find or load your dbt profile.
Solutions:
- Verify your profile exists in
~/.dbt/profiles.yml - Check that the profile name in
dbt_project.ymlmatches your profile - Set
DBT_PROFILES_DIRenvironment variable if using a custom location - Verify the profile has the correct target configured
"Target not found in profile"
Problem: The specified target doesn't exist in your profile.
Solutions:
- Check available targets in
~/.dbt/profiles.yml - Verify the target name in
dbt_project.yml - Ensure the target is configured with correct credentials
Connection Issues
"BigQuery connection failed"
Problem: Cannot connect to BigQuery.
Solutions:
- Verify BigQuery credentials in your dbt target
- Check that service account key file path is correct
- Ensure service account has necessary permissions
- Verify project ID is correct
- Check network connectivity to BigQuery
"Snowflake connection failed"
Problem: Cannot connect to Snowflake.
Solutions:
- Verify Snowflake credentials in your dbt target
- Check account, user, warehouse, database, and schema
- Ensure password or private key is correct
- Verify network connectivity to Snowflake
- Check that user has necessary permissions
Model Discovery Issues
"Required nexus models not found"
Problem: The server cannot find nexus models in the manifest.
Solutions:
- Ensure nexus package is installed:
dbt deps - Verify nexus models are built:
dbt run --select package:nexus - Check that models exist in
target/manifest.json - Verify model names match expected patterns:
nexus_entitiesnexus_relationshipsnexus_eventsnexus_entity_participants
"Schema not found"
Problem: Cannot determine schema from models.
Solutions:
- Verify models are built in the expected schema
- Check dbt target schema configuration
- Ensure schema names are consistent
Query Issues
"Query execution failed"
Problem: SQL query fails to execute.
Solutions:
- Check the generated SQL in the response (
queryfield) - Verify table names and schema are correct
- Check column names match your schema
- Ensure you have read permissions on tables
- Review warehouse error messages
"No results returned"
Problem: Query executes but returns no data.
Solutions:
- Verify filters are correct
- Check that data exists in tables
- Review query conditions
- Try removing filters to see if data exists
- Check date/time formats in filters
"Invalid filter operator"
Problem: Filter operator is not supported.
Solutions:
- Use supported operators:
=,!=,>,<,>=,<=,LIKE,IN,IS NULL,IS NOT NULL - For
INoperator, ensure value is an array - For
IS NULL/IS NOT NULL, don't provide a value
Performance Issues
"Query is slow"
Problem: Queries take too long to execute.
Solutions:
- Add filters to limit results
- Use
limitto restrict result size - Check for missing indexes on filtered columns
- Review query execution plan
- Consider adding aggregations only when needed
"Too many results"
Problem: Query returns too much data.
Solutions:
- Always specify a
limitparameter - Use filters to narrow results
- Use pagination with
offsetfor large result sets - Consider using more specific queries
Debugging
Enable Verbose Logging
The server logs to stderr. Check console output for:
- Connection status
- Query execution times
- Generated SQL queries
- Error messages
Inspect Generated SQL
All tool responses include a query field with the generated SQL. Use this to:
- Verify query logic
- Debug filter conditions
- Check table/column names
- Test queries directly in your warehouse
Test Connection Manually
Test your dbt connection:
dbt debug
This verifies:
- Profile configuration
- Warehouse connection
- Permissions
Verify Models
Check that nexus models exist:
dbt list --select package:nexus
List all models:
dbt list
Getting Help
If issues persist:
- Check logs: Review console output for detailed error messages
- Verify configuration: Ensure all paths and credentials are correct
- Test manually: Try running queries directly in your warehouse
- Check documentation: Review tool reference and examples
- Report issues: Include error messages, SQL queries, and configuration details
Common Error Messages
| Error | Cause | Solution |
|---|---|---|
| "dbt_project.yml not found" | Wrong directory | Use --project-dir or run from project root |
| "manifest.json not found" | Models not compiled | Run dbt compile |
| "Profile not found" | Missing profile | Check ~/.dbt/profiles.yml |
| "Connection failed" | Invalid credentials | Verify warehouse credentials |
| "Model not found" | Models not built | Run dbt run --select package:nexus |
| "Query failed" | SQL error | Check generated SQL in response |