https://github.com/jumpserver/mcp
MCP server of JumpServer
https://github.com/jumpserver/mcp
Last synced: 7 months ago
JSON representation
MCP server of JumpServer
- Host: GitHub
- URL: https://github.com/jumpserver/mcp
- Owner: jumpserver
- Created: 2025-04-14T09:18:57.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-05-06T07:13:49.000Z (8 months ago)
- Last Synced: 2025-06-08T10:16:28.862Z (7 months ago)
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 7
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JumpServer MCP Server
## Configure JumpServer Environment File (.env)
```txt
# Bearer token to access the JumpServer Swagger Json API, optional
api_token=xxxxxxx
jumpserver_url=http://jumpserverhost
```
## Start Docker Container
```bash
docker run -d -it -p 8099:8099 --env-file .env --name jms_mcp ghcr.io/jumpserver/mcp:latest
```
## Create JumpServer API Bearer Token for MCP Server
```shell
TOKEN=$(curl -s -X POST http://jumpserver_host/api/v1/authentication/auth/ \
-H "Content-Type: application/json" \
-d '{
"username": "admin",
"password": "xxxx"
}' \
--insecure | jq -r '.token')
echo "Your Bearer token: $TOKEN"
```
## MCP Server Configuration
```json
{
"type": "sse",
"url": "http://127.0.0.1:8099/sse",
"headers": {
"Authorization": "Bearer xxxxxxxx"
}
}
```