JSR MCP

JSR MCP

A Model Context Protocol server enabling full JSR registry access and LLM integration.

0
Stars
1
Forks
0
Watchers
0
Issues
JSR MCP provides a Model Context Protocol (MCP) server designed for robust interaction with the JSR (JavaScript Registry) via Deno. It enables large language models (LLMs) to search, retrieve, and manage JavaScript packages, scopes, users, and registry metadata. The server exposes 40 comprehensive tools for operations such as searching packages, managing versions, handling scopes and permissions, and accessing authentication-secured functionality. Ideal for integrating JSR operations into automated systems or AI model workflows.

Key Features

MCP server implementation for JSR integration
Search and retrieve JSR packages and metadata
Full package lifecycle management (create, update, delete)
Version and dependency operations
Scope and membership management
User authentication and permissions support
Comprehensive set of 40 JSR operation tools
Direct integration with Claude Desktop app
Support for running from source or registry
Registry statistics and metadata access

Use Cases

Automating package search and retrieval in AI-driven environments
Integrating JavaScript Registry operations with LLMs for code discovery
Managing package versions, metadata, and dependencies programmatically
Streamlining scope and membership control for teams and organizations
Facilitating automated publishing and updating of JavaScript packages
Enhancing desktop AI tools (e.g., Claude Desktop) with JSR capabilities
Providing secured access to package management features via tokens
Monitoring registry statistics and activity from automated systems
Handling user invitations and permissions for collaborative work
Supporting advanced workflows for package maintainers and consumers

README

JSR MCP

A Deno monorepo containing packages for JSR (JavaScript Registry) access:

Features

  • Search packages across the JSR registry
  • Get package details, versions, and dependencies
  • Manage scopes and package publishing
  • Handle member invitations and permissions
  • Access registry statistics and metadata
  • Full authentication support for write operations

Requirements

  • Deno 2.x or later
  • Network access to JSR API
  • JSR API token for authenticated operations (optional)

Packages

@wyattjoh/jsr

Core library for accessing JSR API:

bash
deno add @wyattjoh/jsr
typescript
import { getPackage, searchPackages } from "@wyattjoh/jsr";

const results = await searchPackages({ query: "react" });
const pkg = await getPackage("deno", "std");

See full documentation

@wyattjoh/jsr-mcp

MCP server for LLM integration:

bash
# Run directly from JSR
deno run --allow-net --allow-env jsr:@wyattjoh/jsr-mcp

# Or install globally
deno install --global --allow-net --allow-env -n jsr-mcp jsr:@wyattjoh/jsr-mcp

For Claude Desktop app integration, add this to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "jsr": {
      "command": "deno",
      "args": [
        "run",
        "--allow-net",
        "--allow-env",
        "jsr:@wyattjoh/jsr-mcp"
      ],
      "env": {
        "JSR_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

Option 2: From Source

  1. Clone this repository
  2. Install dependencies:
    bash
    deno cache packages/*/mod.ts
    
  3. Run the server:
    bash
    deno run --allow-net --allow-env packages/jsr-mcp/mod.ts
    

Available Tools

The MCP server provides 40 tools for comprehensive JSR access:

Package Operations

  • jsr_search_packages - Search for packages
  • jsr_get_package - Get package details
  • jsr_get_package_version - Get specific version details
  • jsr_list_package_versions - List all versions
  • jsr_get_package_metadata - Get package metadata
  • jsr_get_package_dependencies - Get dependencies
  • jsr_get_package_score - Get package quality score
  • jsr_get_package_dependents - Find dependent packages
  • jsr_create_package - Create new package (requires auth)
  • jsr_update_package - Update package (requires auth)
  • jsr_delete_package - Delete package (requires auth)

Package Version Management

  • jsr_create_package_version - Upload new version (requires auth)
  • jsr_update_package_version - Update version, e.g., yank (requires auth)

Scope Management

  • jsr_get_scope - Get scope details
  • jsr_list_scope_packages - List packages in a scope
  • jsr_create_scope - Create new scope (requires auth)
  • jsr_update_scope - Update scope settings (requires auth)
  • jsr_delete_scope - Delete scope (requires auth)

Member Management

  • jsr_list_scope_members - List scope members
  • jsr_add_scope_member - Invite member (requires auth)
  • jsr_update_scope_member - Update member role (requires auth)
  • jsr_remove_scope_member - Remove member (requires auth)
  • jsr_list_scope_invites - List pending invites
  • jsr_delete_scope_invite - Delete scope invite (requires auth)
  • jsr_accept_scope_invite - Accept invite (requires auth)
  • jsr_decline_scope_invite - Decline invite (requires auth)

User Operations

  • jsr_get_current_user - Get authenticated user
  • jsr_get_current_user_scopes - Get user's scopes
  • jsr_get_current_user_scope_member - Get user's membership in a scope
  • jsr_get_current_user_invites - Get user's pending invites
  • jsr_get_user - Get user details
  • jsr_get_user_scopes - Get user's scopes

Registry Operations

  • jsr_list_packages - List all registry packages
  • jsr_get_stats - Get registry statistics

Authorization (OAuth)

  • jsr_create_authorization - Start authorization flow (requires auth)
  • jsr_get_authorization_details - Get authorization details
  • jsr_approve_authorization - Approve authorization (requires auth)
  • jsr_deny_authorization - Deny authorization (requires auth)
  • jsr_exchange_authorization - Exchange code for token (requires auth)

Publishing

  • jsr_get_publishing_task - Get publishing task status

Example Usage

javascript
// Search for packages
jsr_search_packages({ query: "react", limit: 10 });

// Get package details
jsr_get_package({ scope: "deno", name: "std" });

// List versions with pagination
jsr_list_package_versions({
  scope: "deno",
  name: "std",
  limit: 20,
  page: 1,
});

// Get dependencies for a specific version
jsr_get_package_dependencies({
  scope: "deno",
  name: "std",
  version: "1.0.0",
});

// Create a new scope (requires authentication)
jsr_create_scope({
  scope: "my-org",
  description: "My organization's packages",
});

Security Notes

  • Read operations do not require authentication
  • Write operations require a valid JSR API token
  • The server only accesses the JSR API endpoints
  • No local file system access beyond reading environment variables

Development

This is a Deno workspace monorepo. All commands run from the root affect all packages.

bash
# Clone the repository
git clone https://github.com/wyattjoh/jsr-mcp.git
cd jsr-mcp

# Cache dependencies
deno cache packages/*/mod.ts

# Format all code
deno fmt

# Lint all packages
deno lint

# Type check all packages
deno check packages/jsr/mod.ts packages/jsr-mcp/mod.ts

# Run tests
deno test --allow-net packages/

# Run MCP server locally (with watch mode)
deno run --allow-read --allow-write --allow-env --allow-run --allow-net --watch packages/jsr-mcp/mod.ts

# Run MCP server in production
deno run --allow-read --allow-write --allow-env --allow-run --allow-net packages/jsr-mcp/mod.ts

# Build binary
cd packages/jsr-mcp
deno compile --allow-read --allow-write --allow-env --allow-run --allow-net --output=jsr-mcp mod.ts

# Publish packages (CI/CD)
deno publish

Working on Individual Packages

bash
# Work on @wyattjoh/jsr
cd packages/jsr
deno test --allow-net

# Work on @wyattjoh/jsr-mcp
cd packages/jsr-mcp
deno run --allow-net --allow-env mod.ts

License

MIT

Star History

Star History Chart

Repository Owner

wyattjoh
wyattjoh

User

Repository Details

Language TypeScript
Default Branch main
Size 105 KB
Contributors 1
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Clojars MCP Server

    Clojars MCP Server

    Fetch and manage Clojars dependency data via MCP for Claude and other AI tools.

    Clojars MCP Server is a Model Context Protocol (MCP) server that enables tools like Claude to fetch up-to-date dependency information from Clojars, the Clojure community artifact repository. It provides standardized MCP tools to retrieve the latest versions of dependencies, check if specific versions exist, and access version histories. Designed for easy integration with AI coding assistants, it supports direct installation and seamless connectivity to Claude via MCP settings.

    • 5
    • MCP
    • Bigsy/Clojars-MCP-Server
  • MCP-Typescribe

    MCP-Typescribe

    An MCP server for serving TypeScript API context to language models.

    MCP-Typescribe is an open-source implementation of the Model Context Protocol (MCP) focused on providing LLMs with contextual, real-time access to TypeScript API documentation. It parses TypeScript (and other) definitions using TypeDoc-generated JSON and serves this information via a queryable server that supports tools used by AI coding assistants. The solution enables AI agents to dynamically explore, search, and understand unknown APIs, accelerating onboarding and supporting agentic behaviors in code generation.

    • 45
    • MCP
    • yWorks/mcp-typescribe
  • Package Version MCP Server

    Package Version MCP Server

    Check latest stable package versions across multiple registries with an MCP server.

    Package Version MCP Server acts as an MCP-compliant server that assists large language models in fetching the latest stable versions of packages from a variety of registries such as npm, PyPI, Maven Central, Go Proxy, Swift Packages, AWS Bedrock, Docker Hub, GitHub Container Registry, and GitHub Actions. It can be integrated via command-line, URL, or containers and is tailored for development environments and tools that require accurate package versioning for code generation or recommendations. The solution is adaptable and is transitioning towards incorporation in the broader mcp-devtools suite.

    • 118
    • MCP
    • sammcj/mcp-package-version
  • OpsLevel MCP Server

    OpsLevel MCP Server

    Read-only MCP server for integrating OpsLevel data with AI tools.

    OpsLevel MCP Server implements the Model Context Protocol to provide AI tools with a secure way to access and interact with OpsLevel account data. It supports read-only operations for a wide range of OpsLevel resources such as actions, campaigns, checks, components, documentation, domains, and more. The tool is compatible with popular environments including Claude Desktop and VS Code, enabling easy integration via configuration and API tokens. Installation options include Homebrew, Docker, and standalone binaries.

    • 8
    • MCP
    • OpsLevel/opslevel-mcp
  • Raindrop.io MCP Server

    Raindrop.io MCP Server

    Enable LLMs to manage and search Raindrop.io bookmarks via the Model Context Protocol.

    Raindrop.io MCP Server is an integration that allows large language models to interact with Raindrop.io bookmarks using the Model Context Protocol. It provides tools to create and search bookmarks, including filtering by tags, and is designed for interoperability with environments like Claude for Desktop. Installation can be done via Smithery or manually, and configuration is managed through environment variables. The project is open source and optimized for secure, tokenized access to Raindrop.io.

    • 63
    • MCP
    • hiromitsusasaki/raindrop-io-mcp-server
  • Firefly MCP Server

    Firefly MCP Server

    Seamless resource discovery and codification for Cloud and SaaS with Model Context Protocol integration.

    Firefly MCP Server is a TypeScript-based server implementing the Model Context Protocol to enable integration with the Firefly platform for discovering and managing resources across Cloud and SaaS accounts. It supports secure authentication, resource codification into infrastructure as code, and easy integration with tools such as Claude and Cursor. The server can be configured via environment variables or command line and communicates using standardized MCP interfaces. Its features facilitate automation and codification workflows for cloud resource management.

    • 15
    • MCP
    • gofireflyio/firefly-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results