npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

zrald1

v1.0.0

Published

Advanced Graph RAG MCP Server with file location identification, graph processing, and result summarization capabilities

Readme

Zrald-1 MCP Server

Advanced Graph RAG MCP Server with file location identification, graph processing, and result summarization capabilities.

Features

  • File Location Identification: Intelligently identify and locate files based on user queries
  • Graph Processing: Convert files into knowledge graph representations with nodes and relationships
  • Vector Search: Semantic search across file content using vector embeddings
  • Relationship Analysis: Analyze relationships between files based on content similarity, references, and dependencies
  • Comprehensive Summarization: Generate detailed summaries and analytics of processed files
  • Export Capabilities: Export graph data in multiple formats (JSON, Cypher, GraphML)

Installation

npm install zrald-1

Usage

As a standalone MCP server

npx zrald-1

As a library

import { GraphRAGMCPServer } from 'zrald-1';

const server = new GraphRAGMCPServer();
await server.initialize();
await server.start();

Available Tools

File Processing Tools

  1. identify_files - Identify and locate files based on search criteria
  2. process_files_to_graph - Convert identified files into graph nodes and relationships
  3. generate_file_summary - Generate comprehensive summaries of processed files
  4. search_file_content - Search within file content using vector similarity
  5. analyze_file_relationships - Analyze relationships between files
  6. export_graph_data - Export graph data in various formats

Vector Search Tools

  1. vdb_search - Vector similarity search across all processed content

Analytics Tools

  1. graph_analytics - Get comprehensive analytics about the file graph

Configuration

Create a .env file in your project root:

VECTOR_DIMENSION=384
MAX_VECTOR_ELEMENTS=10000

Tool Examples

Identify Files

{
  "name": "identify_files",
  "arguments": {
    "query": "typescript configuration",
    "search_paths": ["./src", "./config"],
    "file_types": [".ts", ".json"],
    "recursive": true,
    "max_results": 20
  }
}

Process Files to Graph

{
  "name": "process_files_to_graph",
  "arguments": {
    "file_ids": ["file-id-1", "file-id-2"],
    "create_chunks": true,
    "chunk_size": 1000,
    "chunk_overlap": 100
  }
}

Generate Summary

{
  "name": "generate_file_summary",
  "arguments": {
    "include_content_analysis": true,
    "include_relationships": true,
    "include_statistics": true,
    "summary_type": "comprehensive"
  }
}

Search File Content

{
  "name": "search_file_content",
  "arguments": {
    "query": "database connection configuration",
    "top_k": 10,
    "similarity_threshold": 0.7,
    "file_types": [".js", ".ts", ".json"]
  }
}

Resources

The server provides access to several resources:

  • files://processed-files - All processed files and metadata
  • graph://file-graph - Knowledge graph representation
  • analytics://file-analytics - Analytics and statistics

Development

Build

npm run build

Development Mode

npm run dev

Testing

npm test

Architecture

The server consists of several key components:

  • FileProcessor: Handles file identification, processing, and content analysis
  • VectorStore: Manages vector embeddings and similarity search
  • GraphRAGMCPServer: Main MCP server implementation with tool handlers

License

MIT

Contributing

Contributions are welcome! Please read the contributing guidelines before submitting PRs.

Support

For issues and questions, please use the GitHub issue tracker.