Skip to content
Back to search

mcp-package-version

An MCP server that provides LLMs with the latest stable package versions when coding

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/sammcj--mcp-package-version/badge.svg)](/listings/sammcj--mcp-package-version)

HTML

<a href="/listings/sammcj--mcp-package-version"><img src="/api/listings/sammcj--mcp-package-version/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Requirements:

- A modern go version installed (See [Go Installation](https://go.dev/doc/install))

Using `go install` (Recommended for MCP Client Setup):

go install github.com/sammcj/mcp-package-version/v2@HEAD

Then setup your client to use the MCP server. Assuming you've installed the binary with `go install github.com/sammcj/mcp-package-version/v2@HEAD` and your `$GOPATH` is `/Users/sammcj/go/bin`, you can provide the full path to the binary:

{
  "mcpServers": {
    "package-version": {
      "command": "/Users/sammcj/go/bin/mcp-package-version"
    }
  }
}

- For the Cline VSCode Extension this will be `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` - For Claude Desktop `~/Library/Application\ Support/Claude/claude_desktop_config.json` - For GoMCP `~/.config/gomcp/config.yaml`

Other Installation Methods

Or clone the repository and build it:

git clone https://github.com/sammcj/mcp-package-version.git
cd mcp-package-version
make

You can also run the server in a container:

docker run -p 18080:18080 ghcr.io/sammcj/mcp-package-version:main

Note: If running in a container, you'll need to configure the client to use the URL instead of command, e.g.:

{
  "mcpServers": {
    "package-version": {
      "url": "http://localhost:18080",
    }
  }
}

Tip: Go Path

If `$GOPATH/bin` is not in your `PATH`, you'll need to provide the full path to the binary when configuring your MCP client (e.g. `/Users/sammcj/go/bin/mcp-package-version`).

If you haven't used go applications before and have only just installed go, you may not have a `$GOPATH` set up in your environment. This is important for any `go install` command to work correctly.

> **Understanding `$GOPATH`** > > The `go install` command downloads and compiles Go packages, placing the resulting binary executable in the `bin` subdirectory of your `$GOPATH`. By default, `$GOPATH` is > usually located at `$HOME/go` on Unix-like systems (including macOS). If you haven't configured `$GOPATH` explicitly, Go uses this default. > > The location `$GOPATH/bin` (e.g., `/Users/your_username/go/bin`) needs to be included in your system's `PATH` environment variable if you want to run installed Go binaries directly by name from any terminal location. > > You can add the following line to your shell configuration file (e.g., `~/.zshrc`, `~/.bashrc`) to set `$GOPATH` to the default if it's not already set, and ensure `$GOPATH/bin` is in your `PATH`: > > ```bash > [ -z "$GOPATH" ] && export GOPATH="$HOME/go"; echo "$PATH" | grep -q ":$GOPATH/bin" || export PATH="$PATH:$GOPATH/bin" > ``` > > After adding this line, restart your terminal or MCP client.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 401 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Package Version MCP Server
  2. [![smithery badge](https://smithery.ai/badge/mcp-package-version)](https://smithery.ai/server/mcp-package-version)
  3. An MCP server that provides tools for checking latest stable package versions from multiple package registries:
  4. - npm (Node.js/JavaScript)
  5. - PyPI (Python)
  6. - Maven Central (Java)
  7. - Go Proxy (Go)
  8. - Swift Packages (Swift)
  9. - AWS Bedrock (AI Models)
  10. - Docker Hub (Container Images)
  11. - GitHub Container Registry (Container Images)
  12. - GitHub Actions
  13. This server helps LLMs ensure they're recommending up-to-date package versions when writing code.
  14. **IMPORTANT: I'm slowly moving across this tool to a component of my [mcp-devtools](https://github.com/sammcj/mcp-devtools) server**
  15. <a href="https://glama.ai/mcp/servers/zkts2w92ba"><img width="380" height="200" src="https://glama.ai/mcp/servers/zkts2w92ba/badge" alt="https://github.com/sammcj/mcp-package-version MCP server" /></a>
  16. ## Screenshot
  17. ![tooling with and without mcp-package-version](images/with-without.jpg)
  18. - [Package Version MCP Server](#package-version-mcp-server)
  19. - [Screenshot](#screenshot)
  20. - [Installation](#installation)
  21. - [Usage](#usage)
  22. - [Tools](#tools)
  23. - [Releases and CI/CD](#releases-and-cicd)
  24. - [License](#license)
  25. ## Installation
  26. Requirements:
  27. - A modern go version installed (See [Go Installation](https://go.dev/doc/install))
  28. Using `go install` (Recommended for MCP Client Setup):
  29. ```bash
  30. go install github.com/sammcj/mcp-package-version/v2@HEAD
  31. ```
  32. Then setup your client to use the MCP server. Assuming you've installed the binary with `go install github.com/sammcj/mcp-package-version/v2@HEAD` and your `$GOPATH` is `/Users/sammcj/go/bin`, you can provide the full path to the binary:
  33. ```json
  34. {
  35. "mcpServers": {
  36. "package-version": {
  37. "command": "/Users/sammcj/go/bin/mcp-package-version"
  38. }
  39. }
  40. }
  41. ```
  42. - For the Cline VSCode Extension this will be `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
  43. - For Claude Desktop `~/Library/Application\ Support/Claude/claude_desktop_config.json`
  44. - For GoMCP `~/.config/gomcp/config.yaml`
  45. ### Other Installation Methods
  46. Or clone the repository and build it:
  47. ```bash
  48. git clone https://github.com/sammcj/mcp-package-version.git
  49. cd mcp-package-version
  50. make
  51. ```
  52. You can also run the server in a container:
  53. ```bash
  54. docker run -p 18080:18080 ghcr.io/sammcj/mcp-package-version:main
  55. ```
  56. Note: If running in a container, you'll need to configure the client to use the URL instead of command, e.g.:
  57. ```json
  58. {
  59. "mcpServers": {
  60. "package-version": {
  61. "url": "http://localhost:18080",
  62. }
  63. }
  64. }
  65. ```
  66. #### Tip: Go Path
  67. If `$GOPATH/bin` is not in your `PATH`, you'll need to provide the full path to the binary when configuring your MCP client (e.g. `/Users/sammcj/go/bin/mcp-package-version`).
  68. If you haven't used go applications before and have only just installed go, you may not have a `$GOPATH` set up in your environment. This is important for any `go install` command to work correctly.
  69. > **Understanding `$GOPATH`**
  70. >
  71. > The `go install` command downloads and compiles Go packages, placing the resulting binary executable in the `bin` subdirectory of your `$GOPATH`. By default, `$GOPATH` is > usually located at `$HOME/go` on Unix-like systems (including macOS). If you haven't configured `$GOPATH` explicitly, Go uses this default.
  72. >
  73. > The location `$GOPATH/bin` (e.g., `/Users/your_username/go/bin`) needs to be included in your system's `PATH` environment variable if you want to run installed Go binaries directly by name from any terminal location.
  74. >
  75. > You can add the following line to your shell configuration file (e.g., `~/.zshrc`, `~/.bashrc`) to set `$GOPATH` to the default if it's not already set, and ensure `$GOPATH/bin` is in your `PATH`:
  76. >
  77. > ```bash
  78. > [ -z "$GOPATH" ] && export GOPATH="$HOME/go"; echo "$PATH" | grep -q ":$GOPATH/bin" || export PATH="$PATH:$GOPATH/bin"
  79. > ```
  80. >
  81. > After adding this line, restart your terminal or MCP client.
  82. ## Usage
  83. The server supports two transport modes: stdio (default) and SSE (Server-Sent Events).
  84. ### STDIO Transport (Default)
  85. ```bash
  86. mcp-package-version
  87. ```
  88. ### SSE Transport
  89. ```bash
  90. mcp-package-version --transport sse --port 18080 --base-url "http://localhost:18080"
  91. ```
  92. This would make the server available to clients at `http://localhost:18080/sse` (Note the `/sse` suffix!).
  93. #### Command-line Options
  94. - `--transport`, `-t`: Transport type (stdio or sse). Default: stdio
  95. - `--port`: Port to use for SSE transport. Default: 18080
  96. - `--base-url`: Base URL for SSE transport. Default: http://localhost
  97. ### Docker Images
  98. Docker images are available from GitHub Container Registry:
  99. ```bash
  100. docker pull ghcr.io/sammcj/mcp-package-version:main
  101. ```
  102. You can also see the example [docker-compose.yaml](docker-compose.yaml).
  103. ## Tools
  104. ### NPM Packages
  105. Check the latest versions of NPM packages:
  106. ```json
  107. {
  108. "name": "check_npm_versions",
  109. "arguments": {
  110. "dependencies": {
  111. "react": "^17.0.2",
  112. "react-dom": "^17.0.2",
  113. "lodash": "4.17.21"
  114. },
  115. "constraints": {
  116. "react": {
  117. "majorVersion": 17
  118. }
  119. }
  120. }
  121. }
  122. ```
  123. ### Python Packages (requirements.txt)
  124. Check the latest versions of Python packages from requirements.txt:
  125. ```json
  126. {
  127. "name": "check_python_versions",
  128. "arguments": {
  129. "requirements": [
  130. "requests==2.28.1",
  131. "flask>=2.0.0",
  132. "numpy"
  133. ]
  134. }
  135. }
  136. ```
  137. ### Python Packages (pyproject.toml)
  138. Check the latest versions of Python packages from pyproject.toml:
  139. ```json
  140. {
  141. "name": "check_pyproject_versions",
  142. "arguments": {
  143. "dependencies": {
  144. "dependencies": {
  145. "requests": "^2.28.1",
  146. "flask": ">=2.0.0"
  147. },
  148. "optional-dependencies": {
  149. "dev": {
  150. "pytest": "^7.0.0"
  151. }
  152. },
  153. "dev-dependencies": {
  154. "black": "^22.6.0"
  155. }
  156. }
  157. }
  158. }
  159. ```
  160. ### Java Packages (Maven)
  161. Check the latest versions of Java packages from Maven:
  162. ```json
  163. {
  164. "name": "check_maven_versions",
  165. "arguments": {
  166. "dependencies": [
  167. {
  168. "groupId": "org.springframework.boot",
  169. "artifactId": "spring-boot-starter-web",
  170. "version": "2.7.0"
  171. },
  172. {
  173. "groupId": "com.google.guava",
  174. "artifactId": "guava",
  175. "version": "31.1-jre"
  176. }
  177. ]
  178. }
  179. }
  180. ```
  181. ### Java Packages (Gradle)
  182. Check the latest versions of Java packages from Gradle:
  183. ```json
  184. {
  185. "name": "check_gradle_versions",
  186. "arguments": {
  187. "dependencies": [
  188. {
  189. "configuration": "implementation",
  190. "group": "org.springframework.boot",
  191. "name": "spring-boot-starter-web",
  192. "version": "2.7.0"
  193. },
  194. {
  195. "configuration": "testImplementation",
  196. "group": "junit",
  197. "name": "junit",
  198. "version": "4.13.2"
  199. }
  200. ]
  201. }
  202. }
  203. ```
  204. ### Go Packages
  205. Check the latest versions of Go packages from go.mod:
  206. ```json
  207. {
  208. "name": "check_go_versions",
  209. "arguments": {
  210. "dependencies": {
  211. "module": "github.com/example/mymodule",
  212. "require": [
  213. {
  214. "path": "github.com/gorilla/mux",
  215. "version": "v1.8.0"
  216. },
  217. {
  218. "path": "github.com/spf13/cobra",
  219. "version": "v1.5.0"
  220. }
  221. ]
  222. }
  223. }
  224. }
  225. ```
  226. ### Docker Images
  227. Check available tags for Docker images:
  228. ```json
  229. {
  230. "name": "check_docker_tags",
  231. "arguments": {
  232. "image": "nginx",
  233. "registry": "dockerhub",
  234. "limit": 5,
  235. "filterTags": ["^1\\."],
  236. "includeDigest": true
  237. }
  238. }
  239. ```
  240. ### AWS Bedrock Models
  241. List all AWS Bedrock models:
  242. ```json
  243. {
  244. "name": "check_bedrock_models",
  245. "arguments": {
  246. "action": "list"
  247. }
  248. }
  249. ```
  250. Search for specific AWS Bedrock models:
  251. ```json
  252. {
  253. "name": "check_bedrock_models",
  254. "arguments": {
  255. "action": "search",
  256. "query": "claude",
  257. "provider": "anthropic"
  258. }
  259. }
  260. ```
  261. Get the latest Claude Sonnet model:
  262. ```json
  263. {
  264. "name": "get_latest_bedrock_model",
  265. "arguments": {}
  266. }
  267. ```
  268. ### Swift Packages
  269. Check the latest versions of Swift packages:
  270. ```json
  271. {
  272. "name": "check_swift_versions",
  273. "arguments": {
  274. "dependencies": [
  275. {
  276. "url": "https://github.com/apple/swift-argument-parser",
  277. "version": "1.1.4"
  278. },
  279. {
  280. "url": "https://github.com/vapor/vapor",
  281. "version": "4.65.1"
  282. }
  283. ],
  284. "constraints": {
  285. "https://github.com/apple/swift-argument-parser": {
  286. "majorVersion": 1
  287. }
  288. }
  289. }
  290. }
  291. ```
  292. ### GitHub Actions
  293. Check the latest versions of GitHub Actions:
  294. ```json
  295. {
  296. "name": "check_github_actions",
  297. "arguments": {
  298. "actions": [
  299. {
  300. "owner": "actions",
  301. "repo": "checkout",
  302. "currentVersion": "v3"
  303. },
  304. {
  305. "owner": "actions",
  306. "repo": "setup-node",
  307. "currentVersion": "v3"
  308. }
  309. ],
  310. "includeDetails": true
  311. }
  312. }
  313. ```
  314. ## Releases and CI/CD
  315. This project uses GitHub Actions for continuous integration and deployment. The workflow automatically:
  316. 1. Builds and tests the application on every push to the main branch and pull requests
  317. 2. Creates a release when a tag with the format `v*` (e.g., `v1.0.0`) is pushed
  318. 3. Builds and pushes Docker images to GitHub Container Registry
  319. ## License
  320. [MIT](LICENSE)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.