Choose Your Language:

LastDatabase Developer Documentation

Connect LastDatabase to Gemini CLI

Integrate Gemini CLI with the LastDatabase Model Context Protocol (MCP) server. Search lead datasets, check record allowances, and verify email addresses directly from Gemini CLI.

MCP Endpoint: https://lastdatabase.com/mcp

Transport: HTTP

Authentication: OAuth

Verified Version: Gemini CLI 0.64.0

Available Tools: 8

1. Requirements

2. Register LastDatabase MCP

Open your terminal and register the LastDatabase MCP server.

Windows PowerShell

gemini.cmd mcp add --transport http --scope user lastdatabase https://lastdatabase.com/mcp

macOS and Linux

gemini mcp add --transport http --scope user lastdatabase https://lastdatabase.com/mcp

The --scope user setting makes the connection available to your Gemini CLI user.

3. Start Gemini CLI

Windows

gemini.cmd

macOS and Linux

gemini

4. Authenticate with OAuth

Inside Gemini CLI, run:

/mcp auth lastdatabase

Complete the LastDatabase authorization in your browser. Keep Gemini CLI running during authentication.

Expected result: Gemini CLI successfully authenticates with LastDatabase and discovers the available MCP tools.

5. Verify the Connection

/mcp list

Expected status:

lastdatabase - Ready (8 tools) (OAuth)

6. Available MCP Tools

ToolDescription
get_credits Check remaining record allowance.
search_people Search B2B contacts.
search_consumer_emails Search consumer email records.
search_hot_leads Search available hot leads.
search_mixed_leads Search mixed lead datasets.
search_phone_leads Search phone lead records.
unlock_people Request eligible protected contact details.
verify_email Verify an email address.

7. Example Prompts

Check Your Record Allowance

Use the LastDatabase get_credits tool to check my remaining record allowance. Do not search or unlock records.

Search B2B Contacts

Search LastDatabase for technology company contacts in the United States. Show masked results only. Do not unlock records.

Verify an Email Address

Use the LastDatabase verify_email tool to check an email address I provide. Explain the returned verification status.

8. Record Usage

Searching and unlocking are separate operations. Protected details may remain masked until an authorized unlock succeeds.

Unlocking eligible records may consume your available free or subscription allowance.

Check your allowance with get_credits before requesting an unlock.

9. Troubleshooting

LastDatabase Is Not Listed

Confirm registration succeeded. Restart Gemini CLI and run /mcp list.

Authentication Required

Run /mcp auth lastdatabase and complete browser authorization.

OAuth Callback Does Not Complete

Keep Gemini CLI running while authorizing. Never share access tokens, authorization codes, or full callback URLs.

A Tool Request Fails

Check account permissions and remaining allowance. Successful MCP authentication does not guarantee authorization for every tool request.

10. Frequently Asked Questions

Does LastDatabase support Gemini CLI?

Yes. OAuth authentication, MCP tool discovery, and the get_credits tool were successfully tested with Gemini CLI 0.64.0.

How many tools are available?

Eight MCP tools were discovered during testing.

Do I need an API key?

The tested integration uses browser-based OAuth authentication.

Does connecting consume records?

Authentication and MCP tool discovery do not themselves unlock records.

Is LastDatabase a Google product?

No. LastDatabase is an independent platform that integrates with Gemini CLI.

11. Related Documentation

MCP Server Documentation | Documentation Homepage

Last updated: October 16, 2026

Live Chat
LastDatabase AIDatabase & Sales Assistant
Tell me the country, industry, job title, technology, or lead type you need. I can check LastDatabase inventory and packages.
Inventory and pricing are checked by LastDatabase server tools.