MCP Server
Use the Tuesday Leads API with AI applications through Model Context Protocol (MCP)
Tuesday MCP Server
A comprehensive Model Context Protocol (MCP) server for the Tuesday Leads API, enabling AI assistants to search for people and companies using natural language queries with advanced filtering capabilities.
Features
- Complete Tuesday API Coverage: All endpoints including people search, company search, lookups, and profiles
- Advanced Filtering: 50+ filter parameters including funding, technology, web traffic, and team composition
- AI-Friendly: Natural language processing with intelligent query interpretation
- Flexible Authentication: Environment variables or per-request API keys
- Rich Data Access: Email, phone, funding, technology, and contact information
- Type-Safe: Full TypeScript implementation with Zod validation
- Error Handling: Comprehensive error handling and user-friendly messages
Quick Start
Prerequisites
- Node.js 16.0.0 or higher
- A Tuesday API key (get one at app.tuesday.so)
Step-by-Step Local Installation
1. Clone and Setup the Repository
2. Set Your API Key
Create a .env
file or set environment variable:
3. Test the Server
You should see: Tuesday MCP server started successfully
Press Ctrl+C
to stop the test.
Configure Your AI Assistant
Option 1: Claude Desktop
-
Find your configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Edit the configuration file:
- Get the absolute path:
- Restart Claude Desktop
Option 2: Cursor
- Open Cursor Settings
- Navigate to Extensions → MCP
- Add server configuration:
- Restart Cursor
Option 3: Continue.dev
- Edit your Continue config (
.continue/config.json
):
- Restart Continue extension
Option 4: Any MCP-Compatible Client
For any other MCP client, use these connection details:
- Transport: stdio
- Command:
node
- Arguments:
["/absolute/path/to/tuesday-mcp/dist/index.js"]
- Environment:
{"TUESDAY_API_KEY": "your-api-key-here"}
Verify Installation
1. Check MCP Server Recognition
In your AI assistant, try:
You should see Tuesday tools like search_people
, search_companies
, etc.
2. Test API Connection
You should get workspace information confirming the connection.
3. Test Basic Search
This should return search results from the Tuesday API.
Troubleshooting Setup
Common Issues
-
“Command not found” or “Tool not available”
-
“API key invalid”
-
“Server won’t start”
-
“Permission denied”
Debug Mode
Enable detailed logging:
Development Setup
If you want to modify the server:
Available Tools
Authentication
check_api_key
Validate your Tuesday API key and retrieve workspace information.
Parameters:
api_key
(optional): Tuesday API key if not set as environment variable
Example:
People Search & Lookup
search_people
Search for people using advanced filters and criteria with 50+ filtering options.
Basic Parameters:
page
: Page number (default: 1)per_page
: Results per page (max: 100, default: 25)include_email
: Include email addresses (+2 credits per result)include_phone
: Include phone numbers (+3 credits per result)
Person Filters:
person_titles
: Current job titles to includeperson_not_titles
: Exclude these current job titlesperson_past_titles
: Match against past job titlesperson_seniorities
: Filter by seniority level (e.g., “C-Team”, “Manager”, “Staff”)person_location
: Current person locationnot_person_location
: Exclude people in these locationsperson_days_in_current_title_range
: Days in current role (min/max object)
Organization Filters:
q_organization_domains
: Match organization domainsnot_q_organization_domains
: Exclude organizations with these domainsorganization_location
: Company HQ/locationnot_organization_location
: Exclude companies in these locationsorganization_industry
: Include companies in these industriesorganization_not_industry
: Exclude companies from these industriesorganization_sic_industry
: Filter by SIC codesorganization_not_sic_industry
: Exclude SIC codesorganization_naics_industry
: Filter by NAICS codesorganization_not_naics_industry
: Exclude NAICS codesorganization_revenue_ranges
: Revenue ranges (e.g., “10M”)
Technology & Product Filters:
organization_technology
: Include if they use any of these tools (e.g., “React”, “AWS”)organization_all_technology
: Must use all listed technologiesnot_organization_technology
: Exclude if using any of these technologiesorganization_has_web_app
: Has a web application (boolean)organization_has_mobile_app
: Has a mobile application (boolean)organization_appstore_app_category
: AppStore categories (e.g., “News”, “Finance”)organization_playstore_app_category
: PlayStore categories (e.g., “Business”)organization_appstore_rating
: iOS app rating (min/max 1-5)organization_playstore_rating
: Android app rating (min/max 1-5)organization_appstore_review_count
: Number of iOS reviews (min/max)organization_playstore_review_count
: Number of Android reviews (min/max)organization_is_website_for_sale
: Website listed for sale (boolean)
Web Traffic & Advertising:
organization_website_traffic_total_monthly
: Total monthly visits (min/max)organization_website_traffic_monthly_organic
: Monthly organic traffic (min/max)organization_website_traffic_monthly_paid
: Monthly paid traffic (min/max)organization_monthly_google_adspend
: Estimated monthly Google Ads spend (min/max)
Funding Filters:
organization_funding_amount
: Last round amount (min/max)organization_funding_total_amount
: Total raised funding (min/max)organization_funding_date
: Months since last funding round (min/max)organization_funding_type
: e.g., “Seed”, “Series A”, “Series B”organization_funding_lead_investors
: Names of lead investorsorganization_funding_number_of_investors
: Number of investors in last round (min/max)
Team & Roles:
organization_roles_count
: Role distribution by department with rangesorganization_open_roles_count
: Open roles per department with ranges
Examples:
lookup_person
Find a person using name, company, and other identifying information.
Parameters:
company_domain
(required): Domain of the companyfirst_name
(required): First name of the personlast_name
: Last name of the person (recommended)title
: Job title or rolelocation
: Location (city, state, or country)include_email
: Include email address (+2 credits)include_phone
: Include phone number (+3 credits)
Example:
lookup_person_by_email
Find a person using their email address.
Parameters:
email
(required): Email address to look upinclude_phone
: Include phone number (+3 credits)
Example:
lookup_person_by_phone
Find a person using their phone number.
Parameters:
phone
(required): Phone number to look upinclude_email
: Include email address (+2 credits)
Example:
get_person_profile
Get comprehensive profile information for a person using their LinkedIn URL.
Parameters:
linkedin_url
(required): LinkedIn profile URLinclude_email
: Include email address (+2 credits)include_phone
: Include phone number (+3 credits)
Example:
Company Search & Lookup
search_companies
Search for companies using advanced filters with 50+ filtering options including industry, size, location, funding, technology stack, and team composition.
Basic Parameters:
page
: Page number (default: 1)per_page
: Results per page (max: 100, default: 25)funding
: Include funding details (+1 credit per result)extra
: Include extended company details (+1 credit per result)technology
: Include technology details (+2 credits per result)website_traffic
: Include website traffic details (+1 credit per result)headcount_growth
: Include headcount growth details (+1 credit per result)
Person Filters (same as people search):
person_titles
: Current job titles to includeperson_not_titles
: Exclude these current job titlesperson_past_titles
: Match against past job titlesperson_seniorities
: Filter by seniority levelperson_location
: Current person locationnot_person_location
: Exclude people in these locationsperson_days_in_current_title_range
: Days in current role (min/max)
Organization Filters:
q_organization_domains
: Match organization domainsnot_q_organization_domains
: Exclude organizations with these domainsorganization_location
: Company HQ/locationnot_organization_location
: Exclude companies in these locationsorganization_industry
: Include companies in these industriesorganization_not_industry
: Exclude companies from these industriesorganization_sic_industry
: Filter by SIC codesorganization_not_sic_industry
: Exclude SIC codesorganization_naics_industry
: Filter by NAICS codesorganization_not_naics_industry
: Exclude NAICS codesorganization_revenue_ranges
: Revenue ranges (e.g., “10M”)
Technology & Product Filters:
organization_technology
: Technologies used (e.g., “React”, “Salesforce”)organization_all_technology
: Must use all listed technologiesnot_organization_technology
: Exclude if using these technologiesorganization_has_web_app
: Has web applicationorganization_has_mobile_app
: Has mobile applicationorganization_appstore_app_category
: iOS app categoriesorganization_playstore_app_category
: Android app categoriesorganization_appstore_rating
: iOS app rating (1-5)organization_playstore_rating
: Android app rating (1-5)organization_appstore_review_count
: iOS review countorganization_playstore_review_count
: Android review countorganization_is_website_for_sale
: Website for sale status
Web Traffic & Advertising:
organization_website_traffic_total_monthly
: Total monthly website visitsorganization_website_traffic_monthly_organic
: Organic trafficorganization_website_traffic_monthly_paid
: Paid trafficorganization_monthly_google_adspend
: Google Ads spending
Funding Filters:
organization_funding_amount
: Last funding round amountorganization_funding_total_amount
: Total funding raisedorganization_funding_date
: Months since last fundingorganization_funding_type
: Funding stage (Seed, Series A, etc.)organization_funding_lead_investors
: Lead investor namesorganization_funding_number_of_investors
: Number of investors
Team & Roles:
organization_roles_count
: Team composition by departmentorganization_open_roles_count
: Open positions by department
Examples:
get_company_profile
Get comprehensive company information using LinkedIn URL or domain.
Parameters:
linkedin_url
: LinkedIn company page URLdomain
: Company domain nameinclude_funding
: Include funding and investment information (+2 credits)include_technology
: Include technology stack (+1 credit)include_contacts
: Include key executive contacts (+3 credits)
Example:
get_employee_count
Get employee count and headcount information for a company.
Parameters:
linkedin_url
: LinkedIn company page URLdomain
: Company domain name
Example:
search_employees
Search for employees within a specific company.
Parameters:
page
: Page number (default: 1)per_page
: Results per page (max: 100, default: 25)include_email
: Include email addresses (+2 credits per result)include_phone
: Include phone numbers (+3 credits per result)company_domain
: Company domain to search withinlinkedin_url
: LinkedIn company page URLperson_titles
: Current job titles to includeperson_not_titles
: Exclude these current job titlesperson_seniorities
: Filter by seniority levelperson_location
: Current person locationnot_person_location
: Exclude people in these locations
Example:
Natural Language Query Examples
Once configured, you can use natural language with your AI assistant:
Advanced People Search Examples
Advanced Company Search Examples
Sophisticated Filtering Examples
Advanced Usage Patterns
1. Technology Stack Analysis
2. Funding-Based Targeting
3. Market Size and Traffic Analysis
4. Team Composition Intelligence
Credit Management
Understanding Credit Costs
- Basic searches: 1 credit per result
- Email inclusion: +2 credits per result
- Phone inclusion: +3 credits per result
- Company funding data: +1 credit per result
- Extended company details: +1 credit per result
- Technology stack data: +2 credits per result
- Website traffic data: +1 credit per result
- Headcount growth data: +1 credit per result
- Executive contacts: +3 credits per result
Optimizing Credit Usage
Best Practices
1. Layer Your Filters
2. Use Specific Technology Criteria
3. Combine Funding and Growth Signals
4. Leverage Team Composition Data
Integration Examples
Advanced Sales Prospecting
Competitive Intelligence Workflow
Partnership Development
Market Research and Analysis
Examples by Use Case
Lead Generation with Advanced Targeting
Recruiting with Tech Stack Focus
Market Research with Growth Signals
Partnership Development with Integration Potential
Performance Tips
1. Use Layered Filtering
2. Optimize for Credit Efficiency
3. Leverage Cached Results
API Reference
Rate Limits
Please refer to the Tuesday API documentation for current rate limits and best practices.
Error Handling
The MCP server provides comprehensive error handling:
- Authentication errors: Invalid or missing API keys
- Validation errors: Invalid input parameters
- API errors: Rate limiting, insufficient credits, etc.
- Network errors: Connection issues, timeouts
Troubleshooting
Common Issues and Solutions
-
“Tool not found” errors
- Restart your AI assistant
- Check the MCP server configuration
- Verify the server is running
-
Authentication errors
- Verify your API key is correct
- Check environment variable is set
- Ensure sufficient credits
-
No results returned
- Try broader search criteria
- Check if the company/person exists
- Verify parameter spelling
-
Too many parameters error
- Some filters may be mutually exclusive
- Try using fewer filters at once
- Check parameter format (arrays vs. objects)
Debug Mode
Enable debug logging to troubleshoot issues:
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the ISC License - see the LICENSE file for details.
Support and Resources
Changelog
v1.0.0
- Initial release
- Complete Tuesday API coverage
- TypeScript implementation
- Comprehensive error handling
- AI assistant integration support
- Added 50+ advanced filtering parameters
- Enhanced technology stack filtering
- Added funding and growth signal filters
- Improved web traffic and advertising filters
- Added team composition and hiring filters
- Enhanced organization industry and revenue filtering