aravind33b/Uniswap_Docs_MCP
If you are the rightful owner of Uniswap_Docs_MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This server provides access to the Uniswap documentation using the ModelContextProtocol (MCP).
Uniswap Docs MCP
This is a ModelContextProtocol server that provides access to the Uniswap Docs.
Usage
- Access to Uniswap v4 documentation
- Local semantic search (vector embeddings)
- Tools for fetching docs pages
- Tools for searching the LLMs metadata index
- Can be used with any LLM
Requirements
Node.js ≥ 18 npm ≥ 8 OpenAI API key Mac/Linux environment recommended Claude Desktop if you want to register the MCP server (Or ModelContextProtocol inspector)
Setup
git clone https://github.com/aravind33b/Uniswap_Docs_MCP.git
cd Uniswap_Docs_MCP
npm install
Copy the .env.example file to .env and fill in the OpenAI API key.
cp .env.example .env
Build the server
npm run build
This generates the following files:
build/index.js build/ingestion/.js build/utils/.js
Steps for local development
- Fetch LLM metadata files
node build/ingestion/fetchDocs.js
This will download the LLM metadata files to src/data/raw
bash data/raw/v4-llms.txt data/raw/v4-llms-full.txt
- Parse LLM metadata files
node build/ingestion/parseLLMFiles.js
This will parse the LLM metadata files and generate an index file at src/data/index.json