MCPcopy
hub / github.com/nats-io/nats-server

github.com/nats-io/nats-server @v2.14.3 sqlite

repository ↗ · DeepWiki ↗ · release v2.14.3 ↗
10,326 symbols 88,881 edges 256 files 3,937 documented · 38%
README

NATS Logo

NATS is a simple, secure and performant communications system for digital systems, services and devices. NATS is part of the Cloud Native Computing Foundation (CNCF). NATS has over 40 client language implementations, and its server can run on-premise, in the cloud, at the edge, and even on a Raspberry Pi. NATS can secure and simplify design and operation of modern distributed systems.

License Build Release Slack Coverage Docker Downloads GitHub Downloads CII Best Practices Artifact Hub

Documentation

Contact

  • Twitter: Follow us on Twitter!
  • Google Groups: Where you can ask questions
  • Slack: Click here to join. You can ask questions to our maintainers and to the rich and active community.

Contributing

If you are interested in contributing to NATS, read about our...

Roadmap

The NATS product roadmap can be found here.

Adopters

Who uses NATS? See our list of users on https://nats.io.

Security

Security Audit

A third party security audit was performed by Trail of Bits following engagement by the Open Source Technology Improvement Fund (OSTIF). You can see the full report from April 2025 here.

Reporting Security Vulnerabilities

If you've found a vulnerability or a potential vulnerability in the NATS server, please let us know at nats-security.

License

Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

Extension points exported contracts — how you extend this code

Logger (Interface)
Logger interface of the NATS Server [5 implementers]
server/log.go
DeleteBlock (Interface)
Interface for DeleteBlock. These will be of three types: 1. AVL seqsets. 2. Run length encoding of a deleted range. 3. L [2 …
server/store.go
Authentication (Interface)
Authentication is an interface for implementing authentication [2 implementers]
server/auth.go
RaftNodeCheckpoint (Interface)
RaftNodeCheckpoint is used as an alternative to a direct InstallSnapshot. A checkpoint is created from CreateSnapshotChe [1 …
server/raft.go
SubjectTransformer (Interface)
SubjectTransformer transforms subjects using mappings This API is not part of the public API and not subject to SemVer [1 …
server/subject_transform.go
JWTChanged (FuncType)
JWTChanged functions are called when the store file watcher notices a JWT changed
server/dirstore.go
OCSPResponseCache (Interface)
(no doc) [2 implementers]
server/ocsp_responsecache.go
SignatureHandler (FuncType)
SignatureHandler is used to sign a nonce from the server while authenticating with Nkeys. The callback should sign the n
server/opts.go

Core symbols most depended-on inside this repo

Fatalf
called by 7842
server/log.go
Close
called by 3456
server/accounts.go
Shutdown
called by 3377
server/server.go
Errorf
called by 2356
server/log.go
Fatalf
called by 1136
test/test.go
Add
called by 1084
server/thw/thw.go
shutdown
called by 870
server/raft.go
ClientURL
called by 803
server/server.go

Shape

Function 6,002
Method 3,445
Struct 761
TypeAlias 74
Interface 26
FuncType 18

Languages

Go100%

Modules by API surface

server/jetstream_test.go369 symbols
server/filestore.go337 symbols
server/raft.go293 symbols
server/filestore_test.go283 symbols
server/jetstream_cluster.go269 symbols
server/stream.go252 symbols
server/consumer.go240 symbols
server/accounts.go237 symbols
server/mqtt_test.go223 symbols
server/jetstream_errors_generated.go222 symbols
server/client.go216 symbols
server/jetstream_consumer_test.go189 symbols

Dependencies from manifests, versioned

github.com/antithesishq/antithesis-sdk-gov0.7.0-default-no-op · 1×
github.com/google/go-tpmv0.9.8 · 1×
github.com/minio/highwayhashv1.0.4 · 1×
github.com/nats-io/jwt/v2v2.8.2 · 1×
github.com/nats-io/nkeysv0.4.16 · 1×
github.com/nats-io/nuidv1.0.1 · 1×
golang.org/x/cryptov0.53.0 · 1×
golang.org/x/sysv0.46.0 · 1×
golang.org/x/timev0.15.0 · 1×

For agents

$ claude mcp add nats-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact