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

@kasarlabs/starknet-knowledge-mcp

v0.1.1

Published

MCP server for Starknet ecosystem knowledge and documentation

Downloads

79

Readme

Starknet Knowledge MCP Server

A Model Context Protocol (MCP) server providing access to Starknet ecosystem knowledge and documentation via the Cairo Coder API.

Quick Start

Use this MCP server directly with npx:

npx -y @kasarlabs/starknet-knowledge-mcp

Configuration

The server supports two modes of operation:

Mode 1: Public Cairo Coder API (Default)

Use the official Cairo Coder API with your API key.

Environment Variables:

  • CAIRO_CODER_API_KEY: Your Cairo Coder API key (required)

MCP Client Setup:

{
  "mcpServers": {
    "starknet-knowledge": {
      "command": "npx",
      "args": ["-y", "@kasarlabs/starknet-knowledge-mcp"],
      "env": {
        "CAIRO_CODER_API_KEY": "your-api-key-here"
      }
    }
  }
}

Mode 2: Local/Custom Endpoint

Use a local or custom Cairo Coder API endpoint (no API key required).

Environment Variables:

  • CAIRO_CODER_API_ENDPOINT: Your local endpoint URL (e.g., "http://localhost:8000")

MCP Client Setup:

{
  "mcpServers": {
    "starknet-knowledge": {
      "command": "npx",
      "args": ["-y", "@kasarlabs/starknet-knowledge-mcp"],
      "env": {
        "CAIRO_CODER_API_ENDPOINT": "http://localhost:8000"
      }
    }
  }
}

Note: When using CAIRO_CODER_API_ENDPOINT, the server automatically switches to local mode and no API key is required or used.

Available Tools

starknet_general_knowledge

Get information about the Starknet ecosystem, protocols, and general knowledge.

Parameters:

  • query (string, required): Your question about Starknet ecosystem
  • context (string, optional): Additional context or specific topic area

Examples:

// General ecosystem question
{
  "query": "What are the main DEXs on Starknet?"
}

// Specific protocol information
{
  "query": "How does AVNU handle token routing?",
  "context": "I'm building a swap aggregator"
}

What You Can Learn About

  • Starknet Ecosystem: Protocols, dApps, and services on Starknet
  • DeFi Protocols: Information about DEXs, lending platforms, and yield farming
  • Technical Concepts: Understanding of Starknet-specific features and technologies
  • Recent Updates: Latest news and developments in the Starknet ecosystem
  • Best Practices: Recommendations based on ecosystem standards

Tips for Better Results

  • Be specific about what aspect of the ecosystem you're interested in
  • Mention specific protocols or concepts when relevant
  • Provide context about your use case for more targeted responses
  • Ask about recent developments or protocol comparisons

Development

Prerequisites

  • Node.js >= 18
  • npm or yarn

Local Installation

git clone <repository-url>
cd ask-starknet/packages/mcps/starknet-knowledge
npm install

Available Scripts

npm run build    # Build the project
npm run dev      # Start in development mode
npm start        # Start in production mode

License

MIT

Support

For issues and questions:

Contributing

Contributions are welcome! Please check the contribution guidelines before submitting a PR.