About MCP
MCP is an MCP server published by DataJourneyHQ in the Content category: dJHQ smarty pants.
The repository has 5 stars and 0 forks, with the last commit 12 hours ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/DataJourneyHQ/MCPThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about MCP
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 5 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
2 checks have not been run yet.
Releases
README
DataJourney MCP
A Gleam-based Model Context Protocol (MCP) server that exposes DataJourney interfaces over HTTP, Server-Sent Events (SSE), and WebSocket transports. It publishes official DataJourney documentation as an MCP resource and is ready to host additional DataJourney tools and prompts as they are implemented.
Features
- Documentation resource
datajourney-documentationpointing to https://github.com/DataJourneyHQ/DataJourney/blob/main/README.md. - HTTP JSON-RPC endpoint at
POST /mcpfor direct request/response flows. - SSE transport at
GET /mcp/sse(subscribe) andPOST /mcp/sse(publish responses) for long-lived connections. - WebSocket transport at
GET /mcp/wsfor bidirectional MCP sessions.
All transports share a single in-memory MCP server instance and a reusable SSE registry so multiple clients can connect simultaneously.
Getting Started
Install Gleam
Install the Gleam toolchain before running the project:
# macOS (Homebrew)
brew install gleam
# Linux (asdf)
asdf plugin add gleam
See https://gleam.run/getting-started/installing/ for additional options and platform-specific guidance.
gleam deps download
Create a .env file (optional) to override defaults:
SECRET_KEY_BASE=some-long-secret
PORT=8000
Run the Mist HTTP server:
gleam run
You should see a log entry similar to DataJourney MCP server listening on port 8000. The health endpoint responds with GET /health.
MCP Testing Helpers
With the server running (gleam run), you can exercise MCP endpoints via the
utility scripts in scripts/:
./scripts/read_resource.sh [resource_uri]streams aresources/readrequest. OverrideHOST,PORT, orREQUEST_IDvia environment variables to target different deployments../scripts/list_resources.shissuesresources/list. SetCURSORif you need to paginate through longer lists.
Talking to the MCP Server
SSE Transport
GET /mcp/sseto establish an event stream. The response includes anX-Conn-Idheader.POST /mcp/sse?id=<value>with JSON-RPC payloads to send MCP messages. Responses are delivered both in the HTTP response body and streamed as SSE events namedmcp-message.
WebSocket Transport
Upgrade a WebSocket connection at ws://localhost:8000/mcp/ws and exchange
JSON-RPC payloads as plain-text frames. Each inbound message is forwarded to the
MCP server; responses are emitted back to the client.
Project Layout
src/
├── datajourney_mcp.gleam # Application entrypoint and Mist bootstrapping
├── mcp_server.gleam # MCP server builder and documentation resource handler
├── router.gleam # Mist request routing and transport glue
└── types.gleam # Runtime/Startup context definitions
Development
gleam format
gleam test
Extend mcp_server.gleam with new tools, prompts, or resources to broaden the
DataJourney experience exposed through MCP.
Container Workflow
The repository includes a Dockerfile targeting the official Gleam Erlang
image so you can bundle the MCP server for deployments where installing Gleam
directly is inconvenient. The container runs gleam run by default and exposes
port 8080; set PORT in the environment if you want the application to listen
elsewhere.
For local testing, the Makefile wraps a few common Docker commands:
make build # Build the container image (defaults to datajourney_mcp)
make run PORT=8000 # Run the container and publish the chosen port
make stop # Stop an existing container named datajourney_mcp
make clean # Remove the container and image artifacts
Override DOCKER, IMAGE_NAME, CONTAINER_NAME, or PORT to suit your
environment (e.g. DOCKER=podman make run).
README fetched from the repository 5 hours ago. The original is authoritative.