Skip to content

Commit 4f203ad

Browse files
authored
Merge pull request #50 from janhq/chore/version_bump
chore: bump version 0.13.1
2 parents f364050 + 702153f commit 4f203ad

File tree

4 files changed

+107
-29
lines changed

4 files changed

+107
-29
lines changed

mcp-server/README.md

Lines changed: 76 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
1-
# Search MCP Server (TypeScript)
1+
# Search MCP Server
22

3-
A minimal MCP server that exposes a single `search` tool for LLM clients (Claude Desktop, VS Code MCP extensions). It acts as a bridge to the Chrome extension, which actually performs the Google search and SERP scraping in a real browser for higher-quality results.
3+
A Model Context Protocol (MCP) server that provides browser automation tools through the Jan Browser extension. Exposes tools for web navigation, interaction, search, and observation to LLM clients like Claude Desktop and Jan Desktop.
44

5-
- Transport to client: stdio via `@modelcontextprotocol/sdk`.
6-
- Transport to extension: WebSocket bridge (local) that the extension connects to.
5+
- **Transport to client**: stdio via `@modelcontextprotocol/sdk`
6+
- **Transport to extension**: WebSocket bridge (local) that the extension connects to
7+
- **Available on npm**: `search-mcp-server`
78

8-
## Install
9+
## Quick Start with npx (Recommended)
10+
11+
The easiest way to use this MCP server with Jan Desktop app:
12+
13+
1. **Install the Jan Browser Extension** (required):
14+
- Download from the releases page or build from source
15+
- Load the extension in Chrome: `chrome://extensions` → Enable "Developer mode" → "Load unpacked" → select `dist/` folder
16+
- Verify the extension is running
17+
18+
2. **Configure Jan Desktop**:
19+
- Open Jan Desktop app → Settings → Extensions → Model Context Protocol
20+
- Add new MCP server:
21+
- **Name**: Jan Browser Extension
22+
- **Command**: `npx`
23+
- **Arguments**: `search-mcp-server@latest`
24+
- Save and restart Jan Desktop
25+
26+
3. **That's it!** The MCP server will be automatically installed and run via npx when needed.
27+
28+
**Advantages of npx**:
29+
- No manual installation or building required
30+
- Always uses the latest published version
31+
- Automatically installs dependencies (including `ws`)
32+
- No NVM/Node path issues
33+
34+
## Install from Source
935

1036
Using npm:
1137

@@ -64,16 +90,30 @@ Below are common examples. Paths may vary.
6490

6591
### Claude Desktop
6692

67-
Edit your Claude Desktop MCP config file (on macOS):
93+
Edit your Claude Desktop MCP config file:
6894

69-
- `~/Library/Application Support/Claude/claude_desktop_config.json`
95+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
96+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
7097

7198
Add an entry under `mcpServers`:
7299

100+
**Option 1: Using npx (Recommended)**
101+
```json
102+
{
103+
"mcpServers": {
104+
"jan-browser": {
105+
"command": "npx",
106+
"args": ["search-mcp-server@latest"]
107+
}
108+
}
109+
}
110+
```
111+
112+
**Option 2: Using local installation**
73113
```json
74114
{
75115
"mcpServers": {
76-
"search": {
116+
"jan-browser": {
77117
"command": "node",
78118
"args": ["/absolute/path/to/jan-browser-extension/mcp-server/dist/src/index.js"],
79119
"env": {
@@ -85,37 +125,52 @@ Add an entry under `mcpServers`:
85125
}
86126
```
87127

88-
Restart Claude Desktop. In a chat, ask it to use the `search` tool (e.g., "search the web for ..."), and it will call this server.
128+
Restart Claude Desktop. Make sure the Jan Browser extension is running in Chrome. In a chat, you can use tools like `browser_navigate`, `snapshot`, `web_search`, etc.
89129

90130
### Jan Desktop App
91131

92-
Jan Desktop supports MCP servers. To configure:
132+
Jan Desktop supports MCP servers via the Model Context Protocol extension.
133+
134+
**Option 1: Using npx (Recommended)**
135+
136+
1. Open Jan Desktop app → Settings → Extensions → Model Context Protocol
137+
138+
2. Add a new MCP server:
139+
- **Name**: Jan Browser Extension
140+
- **Command**: `npx`
141+
- **Arguments**: `search-mcp-server@latest`
142+
143+
3. **Important**: Make sure the Jan Browser Chrome extension is installed and running:
144+
- Download from releases or build from source
145+
- Load the extension in Chrome: `chrome://extensions` → Enable "Developer mode" → "Load unpacked" → select `dist/` folder
146+
- The extension must be active for the MCP server to work
147+
148+
4. Save and restart Jan Desktop
149+
150+
**Option 2: Using local installation**
93151

94152
1. Build the MCP server first:
95153
```bash
96-
cd /path/to/jan-browser/mcp-server
154+
cd /path/to/jan-browser-extension/mcp-server
97155
npm install
98156
npm run build
99157
```
100158

101-
2. Open Jan Desktop app and go to Settings → Extensions → Model Context Protocol
159+
2. Open Jan Desktop app Settings → Extensions → Model Context Protocol
102160

103-
3. Add a new MCP server with these settings:
104-
- **Name**: Jan Browser Extension (or any name you prefer)
161+
3. Add a new MCP server:
162+
- **Name**: Jan Browser Extension
105163
- **Command**: `node`
106-
- **Arguments**: `/absolute/path/to/jan-browser/mcp-server/dist/src/index.js`
164+
- **Arguments**: `/absolute/path/to/jan-browser-extension/mcp-server/dist/src/index.js`
107165
- **Environment variables** (optional):
108166
- `BRIDGE_HOST`: `127.0.0.1`
109167
- `BRIDGE_PORT`: `17389`
110168

111-
4. **Important**: Make sure the Jan Browser Chrome extension is installed and running:
112-
- Load the extension in Chrome from the `dist/` folder
113-
- The extension must be active for the MCP server to work
114-
- Verify connection in Chrome DevTools (see "Run extension and MCP together" section)
169+
4. Make sure the Chrome extension is installed and running (see above)
115170

116-
5. Restart Jan Desktop or reload the MCP configuration
171+
5. Save and restart Jan Desktop
117172

118-
6. The server will now expose browser automation tools like `snapshot`, `browser_navigate`, `click`, `type`, `screenshot`, `web_search`, and more.
173+
**Available Tools**: `snapshot`, `browser_navigate`, `click`, `type`, `screenshot`, `web_search`, and more.
119174

120175
**Troubleshooting Jan Desktop:**
121176
- If you see "Failed to start MCP server", ensure the path to `index.js` is absolute and correct

mcp-server/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-server/package.json

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
11
{
22
"name": "search-mcp-server",
3-
"version": "0.13.0",
4-
"private": true,
3+
"version": "0.13.1",
4+
"description": "MCP server for browser automation via Jan Browser extension - provides tools for web navigation, interaction, and search",
55
"type": "module",
66
"license": "Apache-2.0",
7+
"author": "Jan",
8+
"homepage": "https://github.com/janhq/jan-browser-extension",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/janhq/jan-browser-extension.git",
12+
"directory": "mcp-server"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/janhq/jan-browser-extension/issues"
16+
},
17+
"keywords": [
18+
"mcp",
19+
"mcp-server",
20+
"browser-automation",
21+
"web-automation",
22+
"jan",
23+
"ai-tools",
24+
"model-context-protocol"
25+
],
726
"main": "dist/src/index.js",
827
"bin": {
928
"search-mcp-server": "dist/src/index.js"
1029
},
30+
"files": [
31+
"dist"
32+
],
1133
"scripts": {
12-
"build": "tsc -p tsconfig.json",
34+
"build": "tsc -p tsconfig.json && chmod +x dist/src/index.js",
1335
"dev": "tsx watch src/index.ts",
1436
"start": "node dist/src/index.js",
1537
"test": "vitest",
@@ -21,6 +43,7 @@
2143
"@modelcontextprotocol/sdk": "^1.4.2",
2244
"@types/uuid": "^10.0.0",
2345
"uuid": "^9.0.1",
46+
"ws": "^8.18.3",
2447
"zod": "^3.24.1",
2548
"zod-to-json-schema": "^3.24.6"
2649
},
@@ -30,7 +53,6 @@
3053
"@vitest/ui": "^4.0.7",
3154
"tsx": "^4.19.1",
3255
"typescript": "^5.5.4",
33-
"vitest": "^4.0.7",
34-
"ws": "^8.18.3"
56+
"vitest": "^4.0.7"
3557
}
3658
}

mcp-server/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
/**
23
* Jan Browser MCP Server
34
* Modular architecture inspired by browsermcp
@@ -30,7 +31,7 @@ import type { Tool } from "./tools/tool.js";
3031
let bridgeHost = process.env.BRIDGE_HOST || "127.0.0.1";
3132
let bridgePort = Number(process.env.BRIDGE_PORT || 17389);
3233
let bridgeToken = process.env.BRIDGE_TOKEN || undefined;
33-
const SERVER_VERSION = "0.12.2";
34+
const SERVER_VERSION = "0.13.0";
3435
const SERVER_NAME = "jan-browser-mcp";
3536

3637
// CLI arguments

0 commit comments

Comments
 (0)