This MCP server integrates with Cursor IDE, allowing it to connect to external services like Jira, GitHub, PostgreSQL, and Kubernetes through a standardized communication protocol.
Clone the repository:
git clone https://github.com/yourusername/mcp-servers.git
cd mcp-servers
Install dependencies and set up the project:
npm run setup
This command installs dependencies, builds the project, and generates scripts for Cursor IDE integration.
Configure environment variables:
cp .env.example .env
Edit the .env
file and add your credentials for each service you plan to use.
To connect the MCP servers to Cursor IDE:
Add these variables to your .env
file:
JIRA_API_URL=https://your-domain.atlassian.net
[email protected]
JIRA_API_TOKEN=your-jira-api-token
Get your API token from: https://id.atlassian.com/manage-profile/security/api-tokens
get_projects
- Retrieves all accessible Jira projectsget_project
- Gets details about a specific project by keysearch_issues
- Searches for issues using JQL (Jira Query Language)get_issue
- Gets details about a specific issue by keyget_boards
- Retrieves all accessible boardsget_sprints
- Gets all sprints for a specific boardAdd this variable to your .env
file:
GITHUB_TOKEN=your-github-personal-access-token
Generate a token at: https://github.com/settings/tokens
get_repositories
- Retrieves all repositories accessible to the authenticated userget_repository
- Gets details about a specific repositoryget_issues
- Retrieves issues for a repositoryget_issue
- Gets details about a specific issueget_pull_requests
- Retrieves pull requests for a repositoryget_pull_request
- Gets details about a specific pull requestget_branches
- Retrieves branches for a repositoryget_commits
- Gets commits for a repository, optionally filtered by branchcomment_on_pr
- Adds a comment to a specific pull requestsummarize_pr_diff
- Generates a summary of PR changesAdd these variables to your .env
file:
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=your_database_name
POSTGRES_USER=your_username
POSTGRES_PASSWORD=your_password
# POSTGRES_SSL_MODE=require # Uncomment if SSL is required
# POSTGRES_MAX_CONNECTIONS=10 # Optional: limit connection pool size
mcp__get_database_info
- Retrieves information about the connected databasemcp__list_tables
- Lists all tables in the current database schemamcp__get_table_structure
- Gets the column definitions for a specific tablemcp__execute_query
- Executes a custom SQL query against the databaseAdd these variables to your .env
file:
KUBECONFIG=/path/to/your/kubeconfig
# or
# KUBE_API_URL=https://your-kubernetes-api-server
# KUBE_API_TOKEN=your-kubernetes-service-account-token
get_pods
- Retrieves pods from a specified namespacefind_pods
- Finds pods matching a name patternkill_pod
- Deletes a pod in a specified namespaceexec_in_pod
- Executes a command in a specified podget_pod_logs
- Retrieves logs from a specified podAfter running npm run setup
, use the individual shell scripts created for each server.
npm run server -- [server-name]
Example:
npm run server -- github
npm run dev:all
npm run dev -- --list
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.