Skip to main content
Glama

Nia Codebase MCP

by nozomio-labs

Nia Codebase MCP

The Nia Codebase MCP server allows you to integrate with Nia's codebase understanding capabilities through function calling in tools like Cursor, Claude Desktop, and other MCP-compatible clients.

Installation

You can use this MCP server without installing it using npx:

npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY --transport=stdio

Transport Options

The Nia Codebase MCP server supports two transport methods:

1. Standard Input/Output (stdio) - Default

This is the default transport method and is used when no transport is specified:

npx -y nia-codebase-mcp --api-key=YOUR_NIA_API_KEY

2. Server-Sent Events (SSE)

To use SSE transport, specify the --transport=sse flag and optionally a port (default is 3000):

npx -y nia-codebase-mcp --api-key=YOUR_NIA_API_KEY --transport=sse --port=3000

Usage in MCP Clients

Cursor

  1. Open Cursor Settings > Features > MCP Servers
  2. Add a new MCP server
  3. Name: nia-codebase
  4. Type: command
  5. Command: npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY

Claude Desktop

Add to your Claude Desktop configuration at ~/Library/Application Support/Claude/claude_desktop_config.json:

{ "mcpServers": { "nia-codebase": { "command": "npx", "args": ["-y", "nia-codebase-mcp@1.0.1", "--api-key=YOUR_NIA_API_KEY"] } } }

For Windows users, the configuration is at %APPDATA%\Claude\claude_desktop_config.json.

Example Prompts

Using the lookup_codebase_context tool, please analyze my project structure and tell me what the main components are.
Using the lookup_codebase_context tool, search the codebase to understand how the authentication system works and explain its key components.

Debugging

If the server isn't working properly, you can enable debug mode:

npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY --debug=true

Environment Variables

You can also configure the server using environment variables:

  • NIA_API_KEY: Your Nia API key
  • TRANSPORT: The transport method to use (stdio or sse)
  • PORT: The port to use for SSE transport (default: 3000)
  • TOOL_TIMEOUT_MS: Custom timeout for tool execution (default: 300000ms)
  • DEBUG: Enable debug mode (true or false)

Tools

This MCP server provides the following tool:

  • lookup_codebase_context: Look up context from a codebase indexed in Nia, retrieving relevant code snippets based on user queries.

Requirements

  • Node.js 18 or higher
  • A valid Nia API key
  • A codebase indexed in Nia

License

MIT

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

An MCP server that allows integration with Nia's codebase understanding capabilities through function calling in tools like Cursor and Claude Desktop, enabling users to analyze project structure and search codebases via natural language queries.

  1. Installation
    1. Transport Options
      1. Standard Input/Output (stdio) - Default
      2. Server-Sent Events (SSE)
    2. Usage in MCP Clients
      1. Cursor
      2. Claude Desktop
      3. Example Prompts
    3. Debugging
      1. Environment Variables
        1. Tools
          1. Requirements
            1. License

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                An MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.
                Last updated -
                1
                Python
                • Linux
                • Apple
              • -
                security
                F
                license
                -
                quality
                An MCP server that enables language models to access code intelligence features like completions, definitions, and references across multiple programming languages through the Language Server Protocol.
                Last updated -
                Python
              • -
                security
                A
                license
                -
                quality
                An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
                Last updated -
                163
                Python
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.
                Last updated -
                10
                Python
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/nozomio-labs/nia-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server