Masumeのロゴ

Masume

組織
masumedb

Terminal database client with AI chat and an MCP server

公開者masumedb
リポジトリmasume
言語Go
フォーク
3
スター
100
利用可能なツール
0
通信方式stdio
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    Masumeは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには100件のスターと3件のフォークがあります。

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.

MasumeのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Masumeに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Masumeをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. MasumeのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "masume": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMasumeのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. MasumeのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Masumeを使ってこのタスクを手伝ってもらえますか?
Masume
はい、読みました。
Masumeで調べた結果をお伝えします。

よくある質問

Masume MCPサーバーは何に使いますか?

Masumeは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMasume MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMasumeを利用できます。

TypingMindでMasume MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Masumeを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Masume MCPをTypingMindに接続するにはどうすればよいですか?

MasumeはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMasume MCPのどのようなツールを利用できますか?

MasumeはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Masume MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Masumeで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇