Skip to main content
Glama
AskBase

AskBase

Official

AskBase MCP server and Claude Code plugin

Connect AI assistants to your Nuvvi project: search and grow your knowledge base, see what customers asked that your assistant couldn't answer, brief yourself on a customer, and test your assistant's answers.

This repository contains:

  • The AskBase plugin for Claude Code (plugin/): the MCP server connection plus skills for common tasks.

  • The AskBase MCP server (src/askbase_mcp/): hosted by AskBase, or run locally.

/plugin marketplace add smasoftware-usa/askbase-mcp
/plugin install askbase@askbase

Create an API key in the AskBase portal (API Keys, with the read and write scopes) and set it before starting Claude Code:

export ASKBASE_API_KEY="ask_live_..."

Then run /askbase:setup. See plugin/README.md for the skills.

Related MCP server: Twenty CRM MCP Server

Hosted MCP server (other clients)

Any MCP client that supports streamable HTTP can connect directly:

  • URL: https://mcp.getnuvvi.ai/mcp

  • Header: X-API-Key: <your AskBase API key> (or Authorization: Bearer <key>)

Claude Code without the plugin:

claude mcp add --transport http askbase https://mcp.getnuvvi.ai/mcp \
  --header "X-API-Key: $ASKBASE_API_KEY"

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "askbase": {
      "url": "https://mcp.getnuvvi.ai/mcp",
      "headers": { "X-API-Key": "ask_live_your_key_here" }
    }
  }
}

The server is stateless: every request uses only the API key it carries. It stores no keys and keeps no sessions.

Local server (stdio)

Run the server on your own machine (Python 3.10+, uv):

{
  "mcpServers": {
    "askbase": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/smasoftware-usa/askbase-mcp", "askbase-mcp"],
      "env": { "ASK_API_KEY": "ask_live_your_key_here" }
    }
  }
}

Optional settings (environment variables):

Variable

Default

Meaning

ASK_API_BASE_URL

https://api.getnuvvi.ai

AskBase API

ASK_DEFAULT_TOP_K

5

Search results per query

ASK_DEFAULT_SIMILARITY_THRESHOLD

0.2

Minimum similarity for search results

Tools

Area

Tools

Knowledge base

search, list_knowledge_bases, list_collections, get_collection_stats, list_documents, get_document, get_document_chunks, ingest_url, ingest_website, create_document, publish_documents, create_collection

Insights

list_unanswered_questions, get_unanswered_question, suggest_answer, list_failed_lookups

CRM

find_contacts, get_contact, get_contact_memory, list_open_items, update_open_item, find_companies, get_company

Deals

list_deals, get_deal, deal_pipeline_summary, list_deal_suggestions, create_deal, move_deal, decide_deal_suggestion

Assistant

ask_assistant

New documents start as drafts and aren't searchable or used by your assistant until published (publish_documents). CRM tools need CRM turned on for the project. ask_assistant runs your live assistant, so it uses your model's tokens.

API key scopes

Scope

Needed for

any valid key

search; reading collections, documents, insights and CRM; ingesting pages and text

write

creating collections, publishing documents

Development

git clone https://github.com/smasoftware-usa/askbase-mcp.git
cd askbase-mcp
uv venv && uv pip install -e ".[dev]"
.venv/bin/pytest
  • src/askbase_mcp/tools.py: every tool, shared by both transports.

  • src/askbase_mcp/http_server.py: the hosted server (uvicorn askbase_mcp.http_server:app).

  • src/askbase_mcp/server.py: the local stdio server (askbase-mcp).

  • plugin/: the Claude Code plugin; .claude-plugin/marketplace.json lists it. Validate with claude plugin validate ./plugin.

Security

Please report vulnerabilities privately through GitHub's Security → Report a vulnerability on this repository, not in a public issue. Your API key is sent only to the AskBase MCP server and API, and is used only for your own requests.

License

MIT. See LICENSE.

Available Tools

31 tools
ask_assistantA

Ask the project's live assistant a question, as an anonymous visitor would, and get its answer and sources. Each call runs the real model (costs tokens) and appears as a test conversation in the portal.

Inputs: question (required), collection_ids. Returns: result

create_collectionA

Create a collection. Collections live in a knowledge base: if the project has exactly one it's used, if it has none one is created; with several, pass knowledge_base_id. Needs an API key with the 'write' scope.

Inputs: name (required), slug, description, knowledge_base_id. Returns: result

create_dealA

Create a deal. Changes the CRM: confirm the details with the user first. Amounts need an ISO currency. Defaults to the default pipeline's first stage.

Inputs: name (required), stage, amount, currency, +4 more. Returns: result

create_documentC

Add a text document to a collection.

Inputs: content (required), collection_id (required), title, source_uri. Returns: result

deal_pipeline_summaryA

Pipeline overview: stages of each pipeline, open value by stage, weighted forecast by close month, win rate and average time to win over a period, and deals past their close date. Amounts are per currency, never converted.

Inputs: period_days, pipeline_id. Returns: result

decide_deal_suggestionA

Accept or dismiss a deal suggestion. Accepting a new_deal creates the deal (you can adjust name, amount, currency, close date); advance moves the deal; at_risk flags it. Confirm with the user first.

Inputs: decision (required), suggestion_id (required), name, amount, +2 more. Returns: result

find_companiesB

Find companies in the CRM by name or email domain, optionally by industry or size. Shows contact counts and last activity.

Inputs: size, sort, limit, query, +1 more. Returns: result

find_contactsB

Find CRM contacts by name, email or company. Needs CRM turned on for the project.

Inputs: limit, query, stage. Returns: result

get_collection_statsB

Document, chunk and token counts for one collection.

Inputs: collection_id (required). Returns: result

get_companyC

A company's profile, its contacts, its open deals and any pending deal suggestions.

Inputs: company_id (required). Returns: result

get_contactC

A CRM contact's profile: identity, company, stage, language, activity counts, tags and custom fields.

Inputs: contact_id (required). Returns: result

get_contact_memoryB

What the assistant remembers about a contact: current facts and preferences, open promises, recent conversation summaries and recent activity.

Inputs: contact_id (required). Returns: result

get_dealB

One deal: amount, stage and probability, close date, company, people and their roles, at-risk flag, and recent history.

Inputs: deal_id (required). Returns: result

get_documentC

Details of one document.

Inputs: document_id (required). Returns: result

get_document_chunksC

The text chunks of one document, in order.

Inputs: document_id (required), limit. Returns: result

get_unanswered_questionC

One group of unanswered questions: the real customer questions in it, and any saved answer suggestion.

Inputs: cluster_id (required). Returns: result

ingest_urlB

Scrape one web page and add it to a collection.

Inputs: url (required), collection_id (required), title. Returns: result

ingest_websiteB

Crawl a website from a start URL and add its pages to a collection.

Inputs: start_url (required), collection_id (required), max_pages, url_pattern. Returns: result

list_collectionsC

List the knowledge base's collections.

Inputs: limit. Returns: result

list_dealsB

List deals. Filter by status (open, won, lost), pipeline, company, contact or name; sort by close_date, amount, updated, created or name.

Inputs: sort, limit, query, status, +3 more. Returns: result

list_deal_suggestionsA

Deal suggestions the assistant noticed in customer conversations (new deal, move a deal forward, deal at risk), each with the customer's own words. Pending ones wait for a person to decide.

Inputs: limit, status, company_id, contact_id. Returns: result

list_documentsB

List documents, optionally in one collection or with one status (pending, processing, completed, failed).

Inputs: limit, status, collection_id. Returns: result

list_failed_lookupsB

Tool lookups (orders, accounts, bookings...) that came back empty for customers, grouped by pattern. Use to find integration or data gaps.

Inputs: limit, status. Returns: result

list_knowledge_basesA

List the project's knowledge bases (each holds collections).

Inputs: no named parameters. Returns: result

list_open_itemsB

Open items across all contacts: promises we made, things we're waiting on, follow-ups. Filter by owner and due date.

Inputs: due, limit, owner, status. Returns: result

list_unanswered_questionsB

Groups of customer questions the live assistant couldn't answer from the knowledge base, most frequent first. Use to find content gaps.

Inputs: limit, status. Returns: result

move_dealA

Move a deal to another stage (by name or ID); moving to a lost stage takes an optional reason. Changes the CRM: confirm with the user first.

Inputs: stage (required), deal_id (required), lost_reason. Returns: result

publish_documentsA

Publish documents (or set them back to draft / unpublished). New documents start as drafts: only published documents are searchable and used by the live assistant, so publish after the user has reviewed them. Documents must have finished processing.

Inputs: document_ids (required), status. Returns: result

suggest_answerA

Have AskBase analyse a group of unanswered questions and recommend a fix: new content or flow, a new tool, or a data issue (uses the model; takes a few seconds).

Inputs: cluster_id (required). Returns: result

update_open_itemA

Mark an open item done or cancelled (or reopen it). Changes what the assistant tells the customer: confirm with the user first.

Inputs: status (required), item_id (required), contact_id (required), note. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 31 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource+action, and the descriptions actively separate near-pairs like ingest_url (single page) vs ingest_website (crawl), and search (semantic retrieval) vs ask_assistant (runs the live model). A few boundaries are softer — publish_documents bundles publish/unpublish/draft modes, and create_document vs ingest_url both 'add content' — but an agent can reasonably pick the right tool.

    Naming Consistency4/5

    The surface is overwhelmingly consistent snake_case verb_noun (list_collections, get_document, create_deal, move_deal, decide_deal_suggestion). Minor deviations are the bare 'search' and the noun-phrase 'deal_pipeline_summary' / 'ask_assistant', which break the pattern but remain unambiguous.

    Tool Count2/5

    31 tools is heavy for a single server and spans four loosely coupled domains (knowledge base, unanswered-question analytics, CRM contacts/companies, deals, plus assistant testing). Each tool is individually defensible, but the set is large enough that discovery and selection cost is significant.

    Completeness3/5

    Read/create coverage is strong and lifecycle steps like publish and processing status are handled, but write-side gaps are notable: no update or delete for documents/collections, no contact or company create/update, and no way to edit a deal's amount, close date, or delete it. Agents hitting those needs will dead-end.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects AI assistants to Freshsales CRM, enabling natural language queries and CRUD operations on contacts, deals, accounts, and more.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Connects Twenty CRM with AI assistants to manage CRM data via natural language, supporting full CRUD, dynamic schema, search, and workflow triggering.
      -