Logo de Masume

Masume

Organização
masumedb

Terminal database client with AI chat and an MCP server

Publicado pormasumedb
Repositóriomasume
IdiomaGo
Forks
3
Estrelas
100
Ferramentas disponíveis
0
Tipo de transportestdio
LicençaApache-2.0
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    Masume disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    100 estrelas e 3 forks no repositório vinculado.

Engines: PostgreSQL, MySQL, MariaDB, SQL Server, ClickHouse, SQLite, Cassandra, ScyllaDB, Redis, MongoDB, and hosted services such as Neon, Supabase, PlanetScale, Turso, Redshift, and Amazon DocumentDB. See the full list.

Install

mise

sh
mise use -g github:masumedb/masume@latest

Update: mise upgrade github:masumedb/masume

npm (npx masume runs without installing)

sh
npm install -g masume

Update: npm update -g masume

Go (Go 1.27 or later)

sh
go install github.com/masumedb/masume@latest

Update: run the same command again.

Homebrew

sh
brew install masumedb/tap/masume

Update: brew upgrade masumedb/tap/masume

Scoop

powershell
scoop bucket add masumedb https://github.com/masumedb/scoop-bucket
scoop install masumedb/masume

Update: scoop update then scoop update masume

Script (installs to ~/.local/bin)

sh
curl -fsSL https://raw.githubusercontent.com/masumedb/masume/master/install.sh | sh

Update: run the script again. masume does not update itself.

Debian and Ubuntu

sh
sudo dpkg -i masume_<version>_linux_<arch>.deb

Update: install the newer package with the same command.

Fedora and RHEL

sh
sudo rpm -i masume_<version>_linux_<arch>.rpm

Update: sudo rpm -U masume_<version>_linux_<arch>.rpm

Alpine (the packages are unsigned)

sh
sudo apk add --allow-untrusted masume_<version>_linux_<arch>.apk

Update: install the newer package with the same command.

From source

sh
git clone https://github.com/masumedb/masume.git
cd masume
mise install
mise run install

Update: git pull, then mise run install.

The packages and archives are on the releases page. For an archive, unpack the tar.gz, or the zip on Windows, and put masume on the PATH.

Quick start

sh
masume

masume opens the connection picker. n adds a profile, and Enter connects. Ctrl+N returns to the picker from a connection. ? shows the keys, and Ctrl+K opens the command palette. When $DATABASE_URL is set, masume opens that connection instead.

A connection can also come from the command line:

  • masume postgres://ada@127.0.0.1:5432/shop opens a URL.
  • masume ./notes.db opens a SQLite file.
  • masume --detect lists the databases in running Docker or Podman containers.

The first interactive run creates a starter configuration file. A profile can also be written by hand:

toml
[profile.shop]
engine   = "postgres"
host     = "127.0.0.1"
port     = 5432
database = "shop"
user     = "ada"
auth     = "prompt"
env      = "dev"
mode     = "write"

auth = "prompt" prompts for the password at connection time. The password is kept only in memory unless it is saved to the keyring. See configuration for every setting.

Features

Browse and query

The explorer lists the database objects. Table views show data, columns, indexes, constraints, DDL, and query plans. An ER diagram shows a table and the tables linked to it by foreign keys.

The editor has syntax highlighting and completion from the database catalog. Local checks, and server checks where the engine supports them, mark errors before execution. A statement with :name placeholders opens a form for the values. Query plans are drawn as a tree with estimated or measured costs.

Query history and saved queries keep the statements. MongoDB takes a subset of shell syntax, Redis takes commands, one per line, and Cassandra takes CQL with the keyspace as the schema.

The SQL editor with the completion menu open

Workspace

  • Tabs: query, table, notebook, and query builder tabs. The next connect restores them with their text, sort, and filters. See tabs and history.
  • Split view: two tabs side by side or stacked, from one connection or from two. See split view.
  • Query builder: tables, joins, filters, groups, and sorts drawn as a diagram, with the SQL under it. See query builder.
  • Command palette: every command by name, with its key. Ctrl+K opens it.
  • Keys and mouse: every key can be rebound. The mouse selects, scrolls, and drags the pane borders. See keys and mouse controls.
  • Settings screen: theme, icons, keys, AI, and MCP settings, written to the config file. See settings.

A query and a table side by side in a split view

Results and editing

  • Grid: sort, filter on the server or on loaded rows, follow a foreign key, or freeze a column. See sorting and filters.
  • Staged edits: insert, edit, duplicate, and delete rows in supported tables, then review the SQL before it runs. See editing rows.
  • Write plans: row counts and reverse SQL for supported writes. See write plans.
  • Transactions: begin, commit, and rollback. With autocommit off, running a statement starts a transaction.
  • Masking: hides columns with sensitive names in the grid only. Copies, exports, and value viewers show the original values.
  • Copy and export: CSV and JSON files. Clipboard formats also include Markdown, INSERT statements, row JSON, and column IN clauses. See copy and export.
  • Import: CSV or JSON into an existing or new SQL table. See importing files.
  • Dump and restore: schema and data as a SQL file. See dump and restore.
  • Server dashboard: sessions and metrics the engine supports. See server activity.

A result grid

Notebooks

A notebook contains cells of prose, values, statements, and charts on one connection. Each cell keeps its result and its view. A notebook is a Markdown file, and masume nb run runs it. See notebooks.

A notebook of prose, values, statements, and a chart

AI chat and MCP server

The AI chat uses the current connection and asks for confirmation before each query, including reads. It works with Anthropic, OpenAI, Grok, and OpenAI-compatible providers, or a coding agent such as Claude Code. [ai] enabled = false hides the chat. See AI chat.

masume --mcp serves the allowed profiles to an external agent over stdio. It opens its own connections, with an access level per profile and one for the whole server. See MCP server.

Both use the same database tools with different policies. See security limits.

The AI chat with the tool calls, the query, and the answer

Connections and teams

  • Password sources: prompt, keyring, environment variables, commands, and named secret stores. Profile files do not store database passwords. See credentials.
  • Read-only profiles: checked in the client, and also enforced by the server on engines that support it. See read-only access.
  • SSH tunnels and unix sockets: see SSH tunnel and unix socket.
  • Container detection: masume --detect finds databases in running Docker or Podman containers. See databases in a container.
  • Themes: built-in themes, custom themes, or terminal colours. See themes.

A repository can share connections and saved queries in .masume.toml. masume reads the nearest one in or above the working directory:

toml
[profile.dev]
engine   = "postgres"
host     = "127.0.0.1"
database = "shop"
user     = "shop"
env      = "dev"

[query.recent-orders]
sql         = "select * from orders order by created_at desc limit 50"
description = "the newest 50 orders"

See project file and project security.

Headless mode

sh
masume run -p shop-prod -f json 'select count(*) from orders'
masume run -p shop -e ./reports/daily.sql --param day=2026-09-02
masume run ./notes.db -f csv 'select * from notes limit 100000' > notes.csv

See headless mode for formats, exit codes, dump, restore, and notebooks.

Command line

text
masume                                   open the client
masume TARGET                            open a connection, postgres://you@host/shop
masume --profile NAME                    open a user or project profile
masume --detect                          open detected container databases
masume run [TARGET | -p NAME] STATEMENT  run statements
masume nb run [TARGET | -p NAME] FILE    run a notebook
masume dump [TARGET | -p NAME] FILE      dump schema and data
masume restore [TARGET | -p NAME] FILE   restore a dump
masume --mcp                             serve allowed MCP profiles
masume --mcp --profile NAME              serve one allowed MCP profile
masume --mcp --check                     check enabled MCP profiles
masume --version                         print the version

URL support is partial: most native driver options are ignored. See connection targets.

Docs

PageAbout
User guideWorkflows, navigation, editing, data transfer, and troubleshooting
NotebooksCells, charts, run policy, the file format, and masume nb run
ConfigurationSettings, defaults, profiles, and password sources
EnginesProtocols and capabilities
KeysDefault bindings, scopes, and overrides
ThemesBuilt-in and custom themes
AI chatProviders, tools, and data sent to the provider
MCP serverTools, limits, and write confirmation
Headless modemasume run for scripts and CI
SecurityStorage, data sharing, and protection limits

Contributing

See CONTRIBUTING.md.

License

Apache License 2.0. See LICENSE.

Use o MCP de Masume com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar Masume, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione Masume como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de Masume.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "masume": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de Masume, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de Masume.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar Masume para me ajudar nesta tarefa?
Masume
Claro. Já li.
Veja o que encontrei usando Masume.

Perguntas frequentes

Para que serve o servidor MCP Masume?

Masume é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP Masume com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar Masume com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP Masume com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com Masume conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP Masume ao TypingMind?

Masume funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP Masume oferece no TypingMind?

Masume disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP Masume?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se Masume exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇