# Install metals with Homebrew, Nix

Scala language server. Version 1.6.7 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:metals
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install metals
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#metals
```

  Evidence: nixpkgs package indexes: pkgs/by-name/me/metals/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:metals
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/metals>
- **Version:** 1.6.7
- **Source summary:** Scala language server
- **Homepage:** <https://scalameta.org/metals/>
- **Repository:** <https://github.com/scalameta/metals>
- **Upstream docs:** <https://scalameta.org/metals>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/scalameta/metals/archive/refs/tags/v1.6.7.tar.gz>
- **Last updated:** 2026-06-22T14:05:28-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- metals (cli)
- metals-mcp (cli)
- metals (alias)
- metals-mcp (alias)

## Dependencies

- openjdk@25

## Build dependencies

- sbt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.6.7
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/scalameta/metals
- Upstream latest detected: v1.6.7 (current)
## Project history and usage

Metals is the Scala language server from the Scalameta ecosystem. The name is explained by the project as Meta, from Scalameta, plus LS, from Language Server. Early public announcements credited work at the Scala Center with community contributors, and Ólafur Páll Geirsson announced Metals 0.3 and 0.4 releases during the 2018-2019 period as a work-in-progress language server for Scala editors.

### Project history

Metals' technical role is to bring IDE features to editors that speak the Language Server Protocol. The 2019 Scala language blog described Metals 0.5 as supporting completions, type at point, goto definition, fuzzy symbol search, and other editing and navigation features in VS Code, Vim, Emacs, Atom, Sublime Text, and any compatible LSP client. The tool also connected the editor side of Scala tooling to build tools through Bloop and the Build Server Protocol, allowing support for sbt, Gradle, Maven, Mill, and any build tool implementing BSP.

### Adoption history

Version 1.0.0, codenamed Silver, was announced in July 2023 as a culmination of work by the community and core Metals team, with support for important LSP features and IDE-like workflows in users' editors. Metals documentation names Scala Center and VirtusLab among the organizations developing Metals with community help.

### How it is used

In practice, Metals is installed by editor plugins or as a standalone language-server binary, then launched by VS Code, Neovim, Emacs, Sublime Text, Zed, Helix, or another client. Homebrew and Nix packaging make the server available outside editor-specific installers, which matters for reproducible developer machines, CI checks around editor tooling, and users who prefer to manage language servers through the OS package manager.

### Sources

- <https://formulae.brew.sh/formula/metals>
- <https://github.com/scalameta/metals>
- <https://scalameta.org/metals/blog/2019/01/24/tin/>
- <https://scalameta.org/metals/blog/2023/07/19/silver/>
- <https://scalameta.org/metals/docs/integrations/new-build-tool/>
- <https://users.scala-lang.org/t/metals-v0-3-is-out-compile-errors-and-goto-definition-in-the-editor/3681>
- <https://www.scala-lang.org/2019/04/16/metals.html>


## Security Notes

No matching local secret-handling manifest was found for metals. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** metals
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - metals: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/metals/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk@25](https://www.automicvault.com/pkg/brew/openjdk-25/) - Runtime dependency declared by Homebrew.
- [sbt](https://www.automicvault.com/pkg/brew/sbt/) - Build dependency declared by Homebrew.
- [dockerfile-language-server](https://www.automicvault.com/pkg/brew/dockerfile-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, language-servers, lsp.
- [cmake-language-server](https://www.automicvault.com/pkg/brew/cmake-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, language-servers, lsp.
- [haskell-language-server](https://www.automicvault.com/pkg/brew/haskell-language-server/) - Shares av.db curated category or tags: cli, developer-tools, ide, language-server, lsp.
- [neocmakelsp](https://www.automicvault.com/pkg/brew/neocmakelsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, language-servers, lsp.
- [ansible-language-server](https://www.automicvault.com/pkg/brew/ansible-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [erlang-language-platform](https://www.automicvault.com/pkg/brew/erlang-language-platform/) - Shares av.db curated category or tags: cli, developer-tools, ide, language-server, lsp.
- [expert](https://www.automicvault.com/pkg/brew/expert/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [fennel-ls](https://www.automicvault.com/pkg/brew/fennel-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.

## Combined YAML source

View the package source record on GitHub. [combined/metals.yml](https://github.com/automic-vault/db/blob/main/combined/metals.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
