GitHub Stars
100
User Rating
Not Rated
Favorites
0
Views
53
Forks
52
Issues
1
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Node.js (v14 or higher)DataForSEO API credentials (API login and password)Installation
Installation
Prerequisites
Node.js: v14 or higher
DataForSEO API credentials: API login and password
Installation Steps
1. Clone Repository
bash
git clone https://github.com/dataforseo/mcp-server-typescript
cd mcp-server-typescript
2. Install Dependencies
bash
npm install
3. Set Up Environment Variables
bash
export DATAFORSEO_USERNAME=your_username
export DATAFORSEO_PASSWORD=your_password
4. Start Server
bash
npx dataforseo-mcp-server
Troubleshooting
Issue: Server won't start Solution: Check Node.js version and reinstall dependencies.Configuration
Configuration
Basic Configuration
Setting Environment Variables
Set the following environment variables as needed:bash
export DATAFORSEO_USERNAME=your_username
export DATAFORSEO_PASSWORD=your_password
Configuration Example
Basic Configuration
json
{
"mcpServers": {
"example-mcp": {
"command": "npx",
"args": ["dataforseo-mcp-server"],
"env": {
"DATAFORSEO_USERNAME": "your_username",
"DATAFORSEO_PASSWORD": "your_password"
}
}
}
}
Examples
Examples
Basic Usage
Programmatic Usage
javascript
// JavaScript example (Node.js)
const { MCPClient } = require('@modelcontextprotocol/client');
const client = new MCPClient();
await client.connect();
// Execute tool
const result = await client.callTool('toolName', {
parameter1: 'value1',
parameter2: 'value2'
});
console.log(result);
Use Cases
Using the SERP API to perform real-time analysis of SEO data
Utilizing the KEYWORDS_DATA API to research search volume and competition for specific keywords
Employing the ONPAGE API to crawl websites for evaluating SEO performance
Leveraging the DATAFORSEO_LABS API to formulate SEO strategies based on DataForSEO data