📦 Installation
1
Prerequisites
- Python 3.8+
pipx(recommended) oruvxorpip- Your Nia API key from app.trynia.ai
2
Install the Package
3
Configure Your MCP Client
Choose your coding agent below for specific configuration steps
4
Replace Your API Key
Get your API key from app.trynia.ai and replace
YOUR_API_KEY in the configuration5
Restart Your Client
Restart your coding assistant to load the new MCP server
⚙️ Configuration for Your Coding Assistant
- Cursor
- Windsurf
- Claude Desktop
- VS Code
- Continue.dev
- Claude Code
- Codex
🚀 Try It Out!
After restarting your coding agent, you’re good to go:1
Search Package Source Code (No indexing required!)
Ask your coding agent: “Use package search to find how error handling is implemented in the
requests Python library” or “Search the numpy package for array manipulation examples”2
Index Documentation or a Repository
Try indexing public documentation or a repository:
- “Index https://docs.trynia.ai/”
- “Index https://github.com/browser-use/browser-use”
- “Use nia deep research to compare the best GraphRAG frameworks and then index the one with least latency.”
3
Monitor Progress & Explore
Check your indexed resources:
- “List my resources” or “Check the status of my indexing jobs”
- Visit app.trynia.ai to see all your indexed content
🛠️ Available Tools
Package Search (No indexing!)
nia_package_search_grep- Regex-based code search in 3,000+ packagesnia_package_search_hybrid- AI-powered semantic package searchnia_package_search_read_file- Read specific file sections- Supports: PyPI, NPM, Crates.io, Go modules
Repository Management
index_repository- Index GitHub repositories for intelligent searchsearch_codebase- Search code with natural language queriesvisualize_codebase- Open interactive graph visualization
Documentation Management
index_documentation- Index websites and documentationsearch_documentation- Search docs with natural language
Unified Resource Management
list_resources- List all indexed repositories and documentationcheck_resource_status- Monitor indexing progressrename_resource- Rename resources for better organizationdelete_resource- Remove indexed resources
Web Search & Research
nia_web_search- AI-powered search for repos, docs, and contentnia_deep_research_agent- Deep multi-step research and analysis
Project & Development Tools
initialize_project- Set up NIA-enabled projects with IDE configsread_source_content- Read full content of specific sourcesnia_bug_report- Submit feedback directly to the development team
📋 Complete Tool Reference
🔍 Package Search Tools (Instant Access to 3,000+ Packages)
🔍 Package Search Tools (Instant Access to 3,000+ Packages)
nia_package_search_grep
Regex-based deterministic code search across packages from PyPI, NPM, Crates.io, and Go modules.Parameters:registry(str): One of “py_pi”, “npm”, “crates_io”, “golang_proxy”package_name(str): Package name (for Go: “org/repo” format)pattern(str): Regex pattern to search forversion(str, optional): Specific package versionlanguage(str, optional): Filter by programming languageoutput_mode(str): “content” (default), “files_with_matches”, “count”
nia_package_search_hybrid
AI-powered semantic search combined with optional regex filtering.Parameters:registry(str): Package registrypackage_name(str): Package namesemantic_queries(List[str]): 1-5 natural language questionspattern(str, optional): Regex pre-filterversion(str, optional): Specific version
nia_package_search_read_file
Read exact lines from a package source file using its SHA256 hash.Parameters:registry(str): Package registrypackage_name(str): Package namefilename_sha256(str): File hash from search resultsstart_line(int): Starting line (1-based)end_line(int): Ending line (max 200 lines)
📦 Repository Management Tools
📦 Repository Management Tools
index_repository
Index a GitHub repository for AI-powered code search and analysis.Parameters:repo_url(str): GitHub repository URLbranch(str, optional): Specific branch to index
check_resource_status.search_codebase
Search indexed repositories using natural language queries.Parameters:query(str): Natural language search questionrepositories(List[str]): List of repositories to search (owner/repo format)include_sources(bool, default=True): Include source code snippets
visualize_codebase
Open an interactive graph visualization of repository structure.Parameters:repository(str): Repository in owner/repo format
📚 Documentation Management Tools
📚 Documentation Management Tools
index_documentation
Index websites, documentation, or API references for intelligent search.Parameters:url(str): URL of documentation siteurl_patterns(List[str], optional): Include patterns (e.g., [“/docs/*”])exclude_patterns(List[str], optional): Exclude patterns (e.g., [“/blog/*”])only_main_content(bool, default=True): Extract main content only
search_documentation
Search indexed documentation with natural language queries.Parameters:query(str): Natural language questionsources(List[str]): List of documentation source UUIDs/names/URLsinclude_sources(bool, default=True): Include source references
🗂️ Unified Resource Management
🗂️ Unified Resource Management
list_resources
List all indexed repositories and documentation with their status.Parameters:resource_type(str, optional): Filter by “repository”, “documentation”, or None for all
check_resource_status
Check indexing progress and status of any resource.Parameters:resource_type(str): “repository” or “documentation”identifier(str): Repository name or documentation UUID
rename_resource & delete_resource
Manage your indexed resources with rename and delete operations.Parameters:resource_type(str): “repository” or “documentation”identifier(str): Resource identifiernew_name(str): New display name (for rename only)
🌐 Web Search & Research Tools
🌐 Web Search & Research Tools
nia_web_search
AI-powered search for discovering repositories, documentation, and content.Use Cases: Finding specific repos/docs, trending technologies, similar contentParameters:query(str): Natural language search querynum_results(int, default=5): Number of results (max: 10)category(str, optional): Filter by type (“github”, “company”, etc.)days_back(int, optional): Recent content only
nia_deep_research_agent
Comprehensive multi-step research and analysis.Use Cases: Comparative analysis, pros/cons evaluation, technology selectionParameters:query(str): Research questionoutput_format(str, optional): Structure hint (e.g., “comparison table”)
- Use
nia_web_searchfor: Simple discovery, finding specific items - Use
nia_deep_research_agentfor: Complex analysis, comparisons, evaluations
🛠️ Development Tools
🛠️ Development Tools
initialize_project
Set up NIA-enabled projects with IDE-specific configurations.Parameters:project_root(str): Absolute path to project directoryprofiles(List[str], optional): IDE profiles [“cursor”, “vscode”, “claude”, etc.]
read_source_content
Read full content of specific sources found in search results.Parameters:source_type(str): “repository” or “documentation”source_identifier(str): Source path or URLmetadata(dict, optional): Additional context from search results
nia_bug_report
Submit feedback, bug reports, or feature requests directly to the development team.Parameters:description(str): Detailed description (10-5000 chars)bug_type(str): “bug”, “feature-request”, “improvement”, “other”additional_context(str, optional): Extra details
Need Help? Join our community or reach out through app.trynia.ai for support and updates.
